Class: Onfleet::Organization
- Inherits:
-
OnfleetObject
- Object
- OnfleetObject
- Onfleet::Organization
- Defined in:
- lib/onfleet-ruby/organization.rb
Instance Attribute Summary
Attributes inherited from OnfleetObject
Class Method Summary collapse
Methods inherited from OnfleetObject
#api_url, #attributes, #class_name, #initialize, #parse_response
Constructor Details
This class inherits a constructor from Onfleet::OnfleetObject
Class Method Details
.get ⇒ Object
5 6 7 8 9 |
# File 'lib/onfleet-ruby/organization.rb', line 5 def get url = "/organization" response = Onfleet.request(url, :get) Util.constantize("#{self}").new(response) end |
.get_delegatee_details(id) ⇒ Object
11 12 13 14 15 |
# File 'lib/onfleet-ruby/organization.rb', line 11 def get_delegatee_details id url = "/organizations/#{id}" response = Onfleet.request(url, :get) Util.constantize("#{self}").new(response) end |