ExKcal.Recipe.total_nutrition
You're seeing just the function
total_nutrition
, go back to ExKcal.Recipe module for more information.
Link to this function
total_nutrition(recipe)
Specs
total_nutrition(t()) :: %ExKcal.Product{ alcohols: term(), brand: term(), carbs: term(), description: term(), fats: term(), kcal: term(), minerals: term(), name: term(), note: term(), origin: term(), produced: term(), producer: term(), proteins: term(), salt: term(), vitamins: term(), volume: term(), weight: term() }
Calculate total nutritional value of the ExKcal.Products
used in the ExKcal.Recipe
.
It returns kind of a special ExKcal.Product
instance containing sum of all of the relevant fields, from all of the used
Products.
Notes
- Function doesn't take units into account.
- It won't recalculate
total
fields, it will sum their values.