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
-
#organization(id) ⇒ Sawyer::Resource
(also: #org)
Get a single organization based on its ID.
-
#organizations ⇒ Array<Sawyer::Resource>
(also: #orgs)
List all organizations.
Instance Method Details
#organization(id) ⇒ Sawyer::Resource Also known as: org
Get a single organization based on its ID
36 37 38 |
# File 'lib/ohanakapa/client/organizations.rb', line 36 def organization(id) get("organizations/#{id}") end |
#organizations ⇒ Array<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 |