Skip to content

Instantly share code, notes, and snippets.

@marklocklear
Created May 28, 2013 19:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marklocklear/5665482 to your computer and use it in GitHub Desktop.
Save marklocklear/5665482 to your computer and use it in GitHub Desktop.
brewery_db
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