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