Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Beer -> Random #31

Closed
mrded opened this issue Apr 7, 2014 · 4 comments
Closed

Beer -> Random #31

mrded opened this issue Apr 7, 2014 · 4 comments

Comments

@mrded
Copy link

mrded commented Apr 7, 2014

How can I get random beer with that gem?

http://www.brewerydb.com/developers/docs-endpoint/beer_random

@tylerhunt
Copy link
Owner

This isn't currently supported by the gem. This might work for you as a hack, though:

brewery_db.beers.find('random')

It should be trivial to add support for this (e.g. brewery_db.beers.random) if you want to send a pull request.

@mrded
Copy link
Author

mrded commented Apr 7, 2014

Do you mind if I add extra method to beer in your gem ?

@stevenharman
Copy link
Collaborator

I just released version 0.2.4 which has support for random beers via

brewery_db.beers.random

@mrded
Copy link
Author

mrded commented Apr 7, 2014

That's great! Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants