This gem is an implementation of the fddb.info API to get food related information.
Create an instance of
fddb = FDDB::API.new <<'your api key'>>
item = fddb.get_item <<item_id>>
search = fddb.search <<search_query>>
item.get_ingredients # returns all ingredients of the item
search.get_ingredients # returns ingredients of all items
Add this line to your application's Gemfile:
gem 'fddb'
And then execute:
$ bundle
Or install it yourself as:
$ gem install fddb
- Fork it
- 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 new Pull Request