Class: Onfleet::Organization

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

Instance Attribute Summary

Attributes inherited from OnfleetObject

#id, #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



4
5
6
# File 'lib/onfleet-ruby/organization.rb', line 4

def get
  new(Onfleet.request('organization', :get))
end

.get_delegatee_details(id) ⇒ Object



8
9
10
# File 'lib/onfleet-ruby/organization.rb', line 8

def get_delegatee_details(id)
  new(Onfleet.request("organizations/#{id}", :get))
end