View Source Faker.Food (Faker v0.18.0)
Functions for generating food data.
Summary
Functions
Returns a random description.
Returns a random complete dish.
Returns a random ingredient.
Returns a random measurement.
Returns a random measurement size.
Returns a random metric measurement.
Returns a random spicy ingredient.
Returns a type of sushi.
Functions
@spec description() :: String.t()
Returns a random description.
Examples
iex> Faker.Food.description()
"Two buttermilk waffles, topped with whipped cream and maple syrup, a side of two eggs served any style, and your choice of smoked bacon or smoked ham."
iex> Faker.Food.description()
"28-day aged 300g USDA Certified Prime Ribeye, rosemary-thyme garlic butter, with choice of two sides."
iex> Faker.Food.description()
"Breaded fried chicken with waffles, and a side of maple syrup."
iex> Faker.Food.description()
"Creamy mascarpone cheese and custard layered between espresso and rum soaked house-made ladyfingers, topped with Valrhona cocoa powder."
@spec dish() :: String.t()
Returns a random complete dish.
Examples
iex> Faker.Food.dish()
"Vegetable Soup"
iex> Faker.Food.dish()
"Fish and chips"
iex> Faker.Food.dish()
"Pork belly buns"
iex> Faker.Food.dish()
"Pasta Carbonara"
@spec ingredient() :: String.t()
Returns a random ingredient.
Examples
iex> Faker.Food.ingredient()
"Tomatoes"
iex> Faker.Food.ingredient()
"Albacore Tuna"
iex> Faker.Food.ingredient()
"Potatoes"
iex> Faker.Food.ingredient()
"Tinned"
@spec measurement() :: String.t()
Returns a random measurement.
Examples
iex> Faker.Food.measurement()
"teaspoon"
iex> Faker.Food.measurement()
"gallon"
iex> Faker.Food.measurement()
"pint"
iex> Faker.Food.measurement()
"cup"
@spec measurement_size() :: String.t()
Returns a random measurement size.
Examples
iex> Faker.Food.measurement_size()
"1/4"
iex> Faker.Food.measurement_size()
"3"
iex> Faker.Food.measurement_size()
"1"
iex> Faker.Food.measurement_size()
"1/2"
@spec metric_measurement() :: String.t()
Returns a random metric measurement.
Examples
iex> Faker.Food.metric_measurement()
"centiliter"
iex> Faker.Food.metric_measurement()
"deciliter"
iex> Faker.Food.metric_measurement()
"liter"
iex> Faker.Food.metric_measurement()
"milliliter"
@spec spice() :: String.t()
Returns a random spicy ingredient.
Examples
iex> Faker.Food.spice()
"Garlic Salt"
iex> Faker.Food.spice()
"Ras-el-Hanout"
iex> Faker.Food.spice()
"Curry Hot"
iex> Faker.Food.spice()
"Peppercorns Mixed"
@spec sushi() :: String.t()
Returns a type of sushi.
Examples
iex> Faker.Food.sushi()
"Whitespotted conger"
iex> Faker.Food.sushi()
"Japanese horse mackerel"
iex> Faker.Food.sushi()
"Salmon"
iex> Faker.Food.sushi()
"Octopus"