class Vra::Requests
Public Class Methods
new(client)
click to toggle source
# File lib/vra/requests.rb, line 22 def initialize(client) @client = client end
Public Instance Methods
all_requests()
click to toggle source
# File lib/vra/requests.rb, line 26 def all_requests requests = [] items = @client.http_get_paginated_array!("/catalog-service/api/consumer/requests") items.each do |item| requests << Vra::Request.new(@client, item["id"]) end requests end
by_id(id)
click to toggle source
# File lib/vra/requests.rb, line 37 def by_id(id) Vra::Request.new(@client, id) end