A wrapper for an awesome Scooter quote API.
Add this line to your application's Gemfile:
gem 'how_much_is_the_fish'
And then execute:
$ bundle
Or install it yourself as:
$ gem install how_much_is_the_fish
To get a random or daily quote
HowMuchIsTheFish.random
HowMuchIsTheFish.daily
The hash would look like:
{
"id": 1,
"permalink": "http://howmuchisthe.fish/json/perma/1",
"quote": {
"text": "I want you back for the rhythm attack. Coming down on the floor like a maniac. I want you back for the rhythm-attack. Get down in full effect!",
"track": "How Much Is The Fish",
"album": "No time to chill",
"year": "1998",
"album_cover": "http://s.pixogs.com/image/R-61786-1184615486.jpeg",
"album_information": "http://www.discogs.com/Scooter-No-Time-To-Chill/master/3680"
}
}
To get a quote by ID use
HowMuchIsTheFish.perma(1) # Where 1 is ID of the quote.
- Fork it ( https://github.com/ivdma/how_much_is_the_fish/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request