Project

esha

0.0
No commit activity in last 3 years
No release in over 3 years
Esha is a simple wrapper that makes the ESHA nutrition api a little easier to work with.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

>= 0

Runtime

 Project Readme

Esha

Esha is a simple wrapper that makes the ESHA nutrition api a little easier to work with.

Installation

Add this line to your application's Gemfile:

gem 'esha'

And then run:

$ bundle

Or install it yourself:

$ gem install esha

Usage

Esha::Api.key = '....' # Get an api key from http://developer.esha.com/

pizza = Esha::Food.search('pizza').first
pizza.description # => 'Pizza, hand tossed, cheese, 12"'
pizza.product # => "Domino's Pizza"
pizza.nutrients.first.summary # => "1 Piece -> 187.255 kcal Calories"