Created
May 28, 2013 19:38
-
-
Save marklocklear/5665482 to your computer and use it in GitHub Desktop.
brewery_db
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'brewery_db' | |
brewery_db = BreweryDB::Client.new do |config| | |
config.api_key = 'b7a3521dc50ce9c2e6c675dd896c276a' | |
end | |
=begin | |
abv = brewery_db.beers.all(abv: '5.5') | |
abv.each do |b| | |
puts b.name | |
end | |
=end | |
established = brewery_db.breweries.all(established: 2006) | |
established.each do |e| | |
puts e.inspect | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment