Class: BreweryDB::Resources::Categories
- Inherits:
-
BreweryDB::Resource
- Object
- BreweryDB::Resource
- BreweryDB::Resources::Categories
- Defined in:
- lib/brewery_db/resources/categories.rb
Instance Method Summary collapse
Methods inherited from BreweryDB::Resource
Constructor Details
This class inherits a constructor from BreweryDB::Resource
Instance Method Details
#all(params = {}) ⇒ Object
4 5 6 |
# File 'lib/brewery_db/resources/categories.rb', line 4 def all(params={}) get('categories', params).collection end |
#find(id, params = {}) ⇒ Object
8 9 10 |
# File 'lib/brewery_db/resources/categories.rb', line 8 def find(id, params={}) get('category/%s' % id, params).data end |