class ProfitBricks::Request
Request
class
Public Class Methods
get(request_id)
click to toggle source
Retrieve a request.
# File lib/profitbricks/request.rb, line 26 def get(request_id) response = ProfitBricks.request( method: :get, path: "/requests/#{request_id}", expects: 200 ) instantiate_objects(response) end
list()
click to toggle source
List all requests.
# File lib/profitbricks/request.rb, line 16 def list response = ProfitBricks.request( method: :get, path: '/requests', expects: 200 ) instantiate_objects(response) end
Public Instance Methods
status()
click to toggle source
Retrieve status of a request.
# File lib/profitbricks/request.rb, line 5 def status response = ProfitBricks.request( method: :get, path: "/requests/#{self.id}/status", expects: 200 ) self.class.instantiate_objects(response) end