Module: Untappd::Client::Brewery
- Included in:
- Untappd::Client
- Defined in:
- lib/untappd-api/client/brewery.rb
Instance Method Summary collapse
-
#brewery(id) ⇒ Hashie::Mash
Returns info for the specified brewery.
-
#brewery_feed(id, options = {}) ⇒ Array
Returns the feed for the specified brewery.
-
#brewery_search(query, options = {}) ⇒ Array
Search breweries with the specified query.
Instance Method Details
#brewery(id) ⇒ Hashie::Mash
Returns info for the specified brewery.
28 29 30 31 |
# File 'lib/untappd-api/client/brewery.rb', line 28 def brewery(id) = { :brewery_id => id } get('/brewery_info', ) end |
#brewery_feed(id, options = {}) ⇒ Array
Returns the feed for the specified brewery.
15 16 17 18 |
# File 'lib/untappd-api/client/brewery.rb', line 15 def brewery_feed(id, ={}) .merge!(:brewery_id => id) get('/brewery_checkins', ) end |
#brewery_search(query, options = {}) ⇒ Array
Search breweries with the specified query.
42 43 44 45 |
# File 'lib/untappd-api/client/brewery.rb', line 42 def brewery_search(query, ={}) .merge!(:q => query) get('/brewery_search', ) end |