Class: ActiveNutrition::Objects::NutritionFact

Inherits:
Base
  • Object
show all
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

#base_model

Instance Method Summary collapse

Methods inherited from Base

#initialize, wrap

Constructor Details

This class inherits a constructor from ActiveNutrition::Objects::Base

Instance Method Details

#attributesObject



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