fddb.info

This gem is an implementation of the fddb.info API to get food related information.

Usage

Create an instance of

   fddb = FDDB::API.new "   item = fddb.get_item <<item_id>>\n   search = fddb.search <<search_query>>\n\n   item.get_ingredients  # returns all ingredients of the item\n   search.get_ingredients # returns ingredients of all items\n">>

Installation

Add this line to your application's Gemfile:

gem 'fddb'

And then execute:

$ bundle

Or install it yourself as:

$ gem install fddb

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request