Module: Ohanakapa::Client::Organizations

Included in:
Ohanakapa::Client
Defined in:
lib/ohanakapa/client/organizations.rb

Overview

Methods for the Organizations API

Instance Method Summary collapse

Instance Method Details

#organization(id) ⇒ Sawyer::Resource Also known as: org

Get a single organization based on its ID

Examples:

Ohanakapa.organization('519c44065634241897000023')
Ohanakapa.org('519c44065634241897000023')

See Also:



36
37
38
# File 'lib/ohanakapa/client/organizations.rb', line 36

def organization(id)
  get("organizations/#{id}")
end

#organizationsArray<Sawyer::Resource> Also known as: orgs

List all organizations

This provides a dump of every organization, in the order that they were uploaded to the Ohana DB.



22
23
24
# File 'lib/ohanakapa/client/organizations.rb', line 22

def organizations
  get "organizations"
end