Class: Varanus::Organization
- Inherits:
-
RestResource
- Object
- RestResource
- Varanus::Organization
- Defined in:
- lib/varanus/organization.rb
Overview
A connection to the Organization API
Instance Method Summary collapse
-
#info(id) ⇒ Object
Return info on organization.
- #list ⇒ Object
Methods inherited from RestResource
Constructor Details
This class inherits a constructor from Varanus::RestResource
Instance Method Details
#info(id) ⇒ Object
Return info on organization.
6 7 8 |
# File 'lib/varanus/organization.rb', line 6 def info id get("organization/v1/#{id}") end |
#list ⇒ Object
10 11 12 |
# File 'lib/varanus/organization.rb', line 10 def list get('organization/v1') end |