Class: Zutat::NutrientTargets
- Inherits:
-
Object
- Object
- Zutat::NutrientTargets
- Defined in:
- lib/zutat/nutrient-targets.rb
Instance Attribute Summary collapse
-
#biotin ⇒ Object
Returns the value of attribute biotin.
-
#biotin_max ⇒ Object
Returns the value of attribute biotin_max.
-
#calcium ⇒ Object
Returns the value of attribute calcium.
-
#calcium_max ⇒ Object
Returns the value of attribute calcium_max.
-
#calories ⇒ Object
Returns the value of attribute calories.
-
#calories_max ⇒ Object
Returns the value of attribute calories_max.
-
#carbs ⇒ Object
Returns the value of attribute carbs.
-
#carbs_max ⇒ Object
Returns the value of attribute carbs_max.
-
#chloride ⇒ Object
Returns the value of attribute chloride.
-
#chloride_max ⇒ Object
Returns the value of attribute chloride_max.
-
#cholesterol ⇒ Object
Returns the value of attribute cholesterol.
-
#cholesterol_max ⇒ Object
Returns the value of attribute cholesterol_max.
-
#choline ⇒ Object
Returns the value of attribute choline.
-
#choline_max ⇒ Object
Returns the value of attribute choline_max.
-
#chromium ⇒ Object
Returns the value of attribute chromium.
-
#chromium_max ⇒ Object
Returns the value of attribute chromium_max.
-
#copper ⇒ Object
Returns the value of attribute copper.
-
#copper_max ⇒ Object
Returns the value of attribute copper_max.
-
#fat ⇒ Object
Returns the value of attribute fat.
-
#fat_max ⇒ Object
Returns the value of attribute fat_max.
-
#fiber ⇒ Object
Returns the value of attribute fiber.
-
#fiber_max ⇒ Object
Returns the value of attribute fiber_max.
-
#folate ⇒ Object
Returns the value of attribute folate.
-
#folate_max ⇒ Object
Returns the value of attribute folate_max.
-
#iodine ⇒ Object
Returns the value of attribute iodine.
-
#iodine_max ⇒ Object
Returns the value of attribute iodine_max.
-
#iron ⇒ Object
Returns the value of attribute iron.
-
#iron_max ⇒ Object
Returns the value of attribute iron_max.
-
#maganese ⇒ Object
Returns the value of attribute maganese.
-
#maganese_max ⇒ Object
Returns the value of attribute maganese_max.
-
#magnesium ⇒ Object
Returns the value of attribute magnesium.
-
#magnesium_max ⇒ Object
Returns the value of attribute magnesium_max.
-
#molybdenum ⇒ Object
Returns the value of attribute molybdenum.
-
#molybdenum_max ⇒ Object
Returns the value of attribute molybdenum_max.
-
#name ⇒ Object
Returns the value of attribute name.
-
#niacin ⇒ Object
Returns the value of attribute niacin.
-
#niacin_max ⇒ Object
Returns the value of attribute niacin_max.
-
#omega_3 ⇒ Object
Returns the value of attribute omega_3.
-
#omega_3_max ⇒ Object
Returns the value of attribute omega_3_max.
-
#omega_6 ⇒ Object
Returns the value of attribute omega_6.
-
#omega_6_max ⇒ Object
Returns the value of attribute omega_6_max.
-
#panthothenic ⇒ Object
Returns the value of attribute panthothenic.
-
#panthothenic_max ⇒ Object
Returns the value of attribute panthothenic_max.
-
#phosphorus ⇒ Object
Returns the value of attribute phosphorus.
-
#phosphorus_max ⇒ Object
Returns the value of attribute phosphorus_max.
-
#potassium ⇒ Object
Returns the value of attribute potassium.
-
#potassium_max ⇒ Object
Returns the value of attribute potassium_max.
-
#protein ⇒ Object
Returns the value of attribute protein.
-
#protein_max ⇒ Object
Returns the value of attribute protein_max.
-
#riboflavin ⇒ Object
Returns the value of attribute riboflavin.
-
#riboflavin_max ⇒ Object
Returns the value of attribute riboflavin_max.
-
#selinium ⇒ Object
Returns the value of attribute selinium.
-
#selinium_max ⇒ Object
Returns the value of attribute selinium_max.
-
#sodium ⇒ Object
Returns the value of attribute sodium.
-
#sodium_max ⇒ Object
Returns the value of attribute sodium_max.
-
#sulfur ⇒ Object
Returns the value of attribute sulfur.
-
#sulfur_max ⇒ Object
Returns the value of attribute sulfur_max.
-
#thiamin ⇒ Object
Returns the value of attribute thiamin.
-
#thiamin_max ⇒ Object
Returns the value of attribute thiamin_max.
-
#vitamin_a ⇒ Object
Returns the value of attribute vitamin_a.
-
#vitamin_a_max ⇒ Object
Returns the value of attribute vitamin_a_max.
-
#vitamin_b12 ⇒ Object
Returns the value of attribute vitamin_b12.
-
#vitamin_b12_max ⇒ Object
Returns the value of attribute vitamin_b12_max.
-
#vitamin_b6 ⇒ Object
Returns the value of attribute vitamin_b6.
-
#vitamin_b6_max ⇒ Object
Returns the value of attribute vitamin_b6_max.
-
#vitamin_c ⇒ Object
Returns the value of attribute vitamin_c.
-
#vitamin_c_max ⇒ Object
Returns the value of attribute vitamin_c_max.
-
#vitamin_d ⇒ Object
Returns the value of attribute vitamin_d.
-
#vitamin_d_max ⇒ Object
Returns the value of attribute vitamin_d_max.
-
#vitamin_e ⇒ Object
Returns the value of attribute vitamin_e.
-
#vitamin_e_max ⇒ Object
Returns the value of attribute vitamin_e_max.
-
#vitamin_k ⇒ Object
Returns the value of attribute vitamin_k.
-
#vitamin_k_max ⇒ Object
Returns the value of attribute vitamin_k_max.
-
#zinc ⇒ Object
Returns the value of attribute zinc.
-
#zinc_max ⇒ Object
Returns the value of attribute zinc_max.
Instance Method Summary collapse
-
#initialize(nt) ⇒ NutrientTargets
constructor
A new instance of NutrientTargets.
Constructor Details
#initialize(nt) ⇒ NutrientTargets
Returns a new instance of NutrientTargets.
13 14 15 16 17 |
# File 'lib/zutat/nutrient-targets.rb', line 13 def initialize(nt) nt.each do |k,v| send("#{k}=",v) end end |
Instance Attribute Details
#biotin ⇒ Object
Returns the value of attribute biotin.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def biotin @biotin end |
#biotin_max ⇒ Object
Returns the value of attribute biotin_max.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def biotin_max @biotin_max end |
#calcium ⇒ Object
Returns the value of attribute calcium.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def calcium @calcium end |
#calcium_max ⇒ Object
Returns the value of attribute calcium_max.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def calcium_max @calcium_max end |
#calories ⇒ Object
Returns the value of attribute calories.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def calories @calories end |
#calories_max ⇒ Object
Returns the value of attribute calories_max.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def calories_max @calories_max end |
#carbs ⇒ Object
Returns the value of attribute carbs.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def carbs @carbs end |
#carbs_max ⇒ Object
Returns the value of attribute carbs_max.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def carbs_max @carbs_max end |
#chloride ⇒ Object
Returns the value of attribute chloride.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def chloride @chloride end |
#chloride_max ⇒ Object
Returns the value of attribute chloride_max.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def chloride_max @chloride_max end |
#cholesterol ⇒ Object
Returns the value of attribute cholesterol.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def cholesterol @cholesterol end |
#cholesterol_max ⇒ Object
Returns the value of attribute cholesterol_max.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def cholesterol_max @cholesterol_max end |
#choline ⇒ Object
Returns the value of attribute choline.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def choline @choline end |
#choline_max ⇒ Object
Returns the value of attribute choline_max.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def choline_max @choline_max end |
#chromium ⇒ Object
Returns the value of attribute chromium.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def chromium @chromium end |
#chromium_max ⇒ Object
Returns the value of attribute chromium_max.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def chromium_max @chromium_max end |
#copper ⇒ Object
Returns the value of attribute copper.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def copper @copper end |
#copper_max ⇒ Object
Returns the value of attribute copper_max.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def copper_max @copper_max end |
#fat ⇒ Object
Returns the value of attribute fat.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def fat @fat end |
#fat_max ⇒ Object
Returns the value of attribute fat_max.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def fat_max @fat_max end |
#fiber ⇒ Object
Returns the value of attribute fiber.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def fiber @fiber end |
#fiber_max ⇒ Object
Returns the value of attribute fiber_max.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def fiber_max @fiber_max end |
#folate ⇒ Object
Returns the value of attribute folate.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def folate @folate end |
#folate_max ⇒ Object
Returns the value of attribute folate_max.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def folate_max @folate_max end |
#iodine ⇒ Object
Returns the value of attribute iodine.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def iodine @iodine end |
#iodine_max ⇒ Object
Returns the value of attribute iodine_max.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def iodine_max @iodine_max end |
#iron ⇒ Object
Returns the value of attribute iron.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def iron @iron end |
#iron_max ⇒ Object
Returns the value of attribute iron_max.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def iron_max @iron_max end |
#maganese ⇒ Object
Returns the value of attribute maganese.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def maganese @maganese end |
#maganese_max ⇒ Object
Returns the value of attribute maganese_max.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def maganese_max @maganese_max end |
#magnesium ⇒ Object
Returns the value of attribute magnesium.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def magnesium @magnesium end |
#magnesium_max ⇒ Object
Returns the value of attribute magnesium_max.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def magnesium_max @magnesium_max end |
#molybdenum ⇒ Object
Returns the value of attribute molybdenum.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def molybdenum @molybdenum end |
#molybdenum_max ⇒ Object
Returns the value of attribute molybdenum_max.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def molybdenum_max @molybdenum_max end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def name @name end |
#niacin ⇒ Object
Returns the value of attribute niacin.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def niacin @niacin end |
#niacin_max ⇒ Object
Returns the value of attribute niacin_max.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def niacin_max @niacin_max end |
#omega_3 ⇒ Object
Returns the value of attribute omega_3.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def omega_3 @omega_3 end |
#omega_3_max ⇒ Object
Returns the value of attribute omega_3_max.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def omega_3_max @omega_3_max end |
#omega_6 ⇒ Object
Returns the value of attribute omega_6.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def omega_6 @omega_6 end |
#omega_6_max ⇒ Object
Returns the value of attribute omega_6_max.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def omega_6_max @omega_6_max end |
#panthothenic ⇒ Object
Returns the value of attribute panthothenic.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def panthothenic @panthothenic end |
#panthothenic_max ⇒ Object
Returns the value of attribute panthothenic_max.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def panthothenic_max @panthothenic_max end |
#phosphorus ⇒ Object
Returns the value of attribute phosphorus.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def phosphorus @phosphorus end |
#phosphorus_max ⇒ Object
Returns the value of attribute phosphorus_max.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def phosphorus_max @phosphorus_max end |
#potassium ⇒ Object
Returns the value of attribute potassium.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def potassium @potassium end |
#potassium_max ⇒ Object
Returns the value of attribute potassium_max.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def potassium_max @potassium_max end |
#protein ⇒ Object
Returns the value of attribute protein.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def protein @protein end |
#protein_max ⇒ Object
Returns the value of attribute protein_max.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def protein_max @protein_max end |
#riboflavin ⇒ Object
Returns the value of attribute riboflavin.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def riboflavin @riboflavin end |
#riboflavin_max ⇒ Object
Returns the value of attribute riboflavin_max.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def riboflavin_max @riboflavin_max end |
#selinium ⇒ Object
Returns the value of attribute selinium.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def selinium @selinium end |
#selinium_max ⇒ Object
Returns the value of attribute selinium_max.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def selinium_max @selinium_max end |
#sodium ⇒ Object
Returns the value of attribute sodium.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def sodium @sodium end |
#sodium_max ⇒ Object
Returns the value of attribute sodium_max.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def sodium_max @sodium_max end |
#sulfur ⇒ Object
Returns the value of attribute sulfur.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def sulfur @sulfur end |
#sulfur_max ⇒ Object
Returns the value of attribute sulfur_max.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def sulfur_max @sulfur_max end |
#thiamin ⇒ Object
Returns the value of attribute thiamin.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def thiamin @thiamin end |
#thiamin_max ⇒ Object
Returns the value of attribute thiamin_max.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def thiamin_max @thiamin_max end |
#vitamin_a ⇒ Object
Returns the value of attribute vitamin_a.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def vitamin_a @vitamin_a end |
#vitamin_a_max ⇒ Object
Returns the value of attribute vitamin_a_max.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def vitamin_a_max @vitamin_a_max end |
#vitamin_b12 ⇒ Object
Returns the value of attribute vitamin_b12.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def vitamin_b12 @vitamin_b12 end |
#vitamin_b12_max ⇒ Object
Returns the value of attribute vitamin_b12_max.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def vitamin_b12_max @vitamin_b12_max end |
#vitamin_b6 ⇒ Object
Returns the value of attribute vitamin_b6.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def vitamin_b6 @vitamin_b6 end |
#vitamin_b6_max ⇒ Object
Returns the value of attribute vitamin_b6_max.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def vitamin_b6_max @vitamin_b6_max end |
#vitamin_c ⇒ Object
Returns the value of attribute vitamin_c.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def vitamin_c @vitamin_c end |
#vitamin_c_max ⇒ Object
Returns the value of attribute vitamin_c_max.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def vitamin_c_max @vitamin_c_max end |
#vitamin_d ⇒ Object
Returns the value of attribute vitamin_d.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def vitamin_d @vitamin_d end |
#vitamin_d_max ⇒ Object
Returns the value of attribute vitamin_d_max.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def vitamin_d_max @vitamin_d_max end |
#vitamin_e ⇒ Object
Returns the value of attribute vitamin_e.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def vitamin_e @vitamin_e end |
#vitamin_e_max ⇒ Object
Returns the value of attribute vitamin_e_max.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def vitamin_e_max @vitamin_e_max end |
#vitamin_k ⇒ Object
Returns the value of attribute vitamin_k.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def vitamin_k @vitamin_k end |
#vitamin_k_max ⇒ Object
Returns the value of attribute vitamin_k_max.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def vitamin_k_max @vitamin_k_max end |
#zinc ⇒ Object
Returns the value of attribute zinc.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def zinc @zinc end |
#zinc_max ⇒ Object
Returns the value of attribute zinc_max.
3 4 5 |
# File 'lib/zutat/nutrient-targets.rb', line 3 def zinc_max @zinc_max end |