Class: ActiveNutrition::Objects::NutritionFact
- Defined in:
- lib/active_nutrition/objects/nutrition_fact.rb
Constant Summary collapse
- METHOD_MAP =
{ :nutrition_number => :Nutr_No, :value => :Nutr_Val, :num_data_points => :Num_Data_Pts, :standard_error => :Std_Error, :units => :Units, :description => :NutrDesc, :tag_name => :Tagname, :sr_order => :SR_Order }
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from ActiveNutrition::Objects::Base
Instance Method Details
#attributes ⇒ Object
19 20 21 |
# File 'lib/active_nutrition/objects/nutrition_fact.rb', line 19 def attributes @attributes ||= base_model.attributes.merge(base_model.definition.attributes) end |