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