Module: Karatekit::Client::Locations
- Included in:
- Karatekit::Client
- Defined in:
- lib/karatekit/client/locations.rb
Overview
Methods for the Locations API
Instance Method Summary collapse
-
#location(id, options = {}) ⇒ Sawyer::Resource
Get a single location.
-
#locations(options = {}) ⇒ Array<Sawyer::Resource>
List locations.
Instance Method Details
#location(id, options = {}) ⇒ Sawyer::Resource
Get a single location
22 23 24 |
# File 'lib/karatekit/client/locations.rb', line 22 def location(id, = {}) get "locations/#{id}", end |
#locations(options = {}) ⇒ Array<Sawyer::Resource>
List locations
13 14 15 |
# File 'lib/karatekit/client/locations.rb', line 13 def locations( = {}) paginate "locations", end |