Module: Untappd::Client::Beer
- Included in:
- Untappd::Client
- Defined in:
- lib/untappd-api/client/beer.rb
Instance Method Summary collapse
-
#beer(id) ⇒ Hashie::Mash
Returns info for the specified beer.
-
#beer_feed(id, options = {}) ⇒ Array
Returns the feed for the specified beer.
-
#beer_search(query, options = {}) ⇒ Array
Search beers with the specified query.
-
#trending_beers(options = {}) ⇒ Array
Returns the currently trending beers.
Instance Method Details
#beer(id) ⇒ Hashie::Mash
Returns info for the specified beer.
28 29 30 31 |
# File 'lib/untappd-api/client/beer.rb', line 28 def beer(id) = { :bid => id } get('/beer_info', ) end |
#beer_feed(id, options = {}) ⇒ Array
Returns the feed for the specified beer.
15 16 17 18 |
# File 'lib/untappd-api/client/beer.rb', line 15 def beer_feed(id, ={}) .merge!(:bid => id) get('/beer_checkins', ) end |
#beer_search(query, options = {}) ⇒ Array
Search beers with the specified query.
42 43 44 45 |
# File 'lib/untappd-api/client/beer.rb', line 42 def beer_search(query, ={}) .merge!(:q => query) get('/beer_search', ) end |
#trending_beers(options = {}) ⇒ Array
Returns the currently trending beers.
59 60 61 |
# File 'lib/untappd-api/client/beer.rb', line 59 def trending_beers(={}) get('/trending', ) end |