ExKcal.Recipe.total_time
You're seeing just the function
total_time
, go back to ExKcal.Recipe module for more information.
Link to this function
total_time(recipe)
Specs
total_time(t()) :: ExKcal.Recipe.Time.t()
Total preparation time of the recipe.
Examples
iex> %ExKcal.Recipe{
...> steps: [
...> %ExKcal.Recipe.Step{
...> instructions: "",
...> notes: "",
...> products: %ExKcal.Products{map: %{}},
...> time: %ExKcal.Recipe.Time{hours: 0, minutes: 5, seconds: 42}
...> },
...> %ExKcal.Recipe.Step{
...> instructions: "",
...> notes: "",
...> products: %ExKcal.Products{map: %{}},
...> time: %ExKcal.Recipe.Time{hours: 0, minutes: 0, seconds: 10}
...> },
...> %ExKcal.Recipe.Step{
...> instructions: "",
...> notes: "",
...> products: %ExKcal.Products{map: %{}},
...> time: %ExKcal.Recipe.Time{hours: 1, minutes: 0, seconds: 1}
...> }
...> ]
...> } |> ExKcal.Recipe.total_time()
%ExKcal.Recipe.Time{hours: 1, minutes: 5, seconds: 53}