Class: Onfleet::Organization

Inherits:
OnfleetObject show all
Defined in:
lib/onfleet-ruby/organization.rb

Instance Attribute Summary

Attributes inherited from OnfleetObject

#params

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

.getObject



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