Class: BreweryDB::Resources::Fermentables
- Inherits:
-
BreweryDB::Resource
- Object
- BreweryDB::Resource
- BreweryDB::Resources::Fermentables
- Defined in:
- lib/brewery_db/resources/fermentables.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/fermentables.rb', line 4 def all(params={}) get('fermentables', params).paginated_collection end |
#find(id, params = {}) ⇒ Object
8 9 10 |
# File 'lib/brewery_db/resources/fermentables.rb', line 8 def find(id, params={}) get('fermentable/%s' % id, params).data end |