Sha256: 1f99775d54c925147ca3bdb914c20dcbe05ffa0841212bdc766e82e8c423adc2
Contents?: true
Size: 843 Bytes
Versions: 3
Compression:
Stored size: 843 Bytes
Contents
# The nutritional composition of the recipe, in the form of a list of nutrients and their amounts, per serving. Yummly # will return nutrition estimates only for those recipes where we are reasonably confident in their accuracy. These are # only estimates and you should be clear about that in what you tell your users. class Yummly::NutritionEstimate # Nutrition attribute’s search parameter name. attr_accessor :attribute # Display name of this nutrition attribute. attr_accessor :description # Nutrition attribute value for this recipe. attr_accessor :value # Implied unit of measure as a Yummly::Unit object. attr_accessor :unit def initialize(values) @attribute = values["attribute"] @description = values["description"] @value = values["value"] @unit = Yummly::Unit.new(values["unit"]) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
yummly-0.0.3 | lib/yummly/nutrition_estimate.rb |
yummly-0.0.2 | lib/yummly/nutrition_estimate.rb |
yummly-0.0.1 | lib/yummly/nutrition_estimate.rb |