View Source Faker.Pizza (Faker v0.19.0-alpha.1)

Functions for generating Pizza related data in English.

Summary

Functions

Returns a cheese string

Returns a combo string

Returns a Pizza Restaurant string

Returns an inches string

Returns a meat string

Returns a pizza

Returns a list with a number of pizzas.

Returns a sauce string

Returns a size string

Returns a random size or inches

Returns a pizza style

Returns a random cheese, sauce, meat or vegetarian topping

Returns a list with a number of toppings.

Returns a vegetable string

Functions

cheese()

@spec cheese() :: String.t()

Returns a cheese string

Examples

iex> Faker.Pizza.cheese()
"Mozzarella"
iex> Faker.Pizza.cheese()
"Marscapone"
iex> Faker.Pizza.cheese()
"Blue (Bleu) Cheese"
iex> Faker.Pizza.cheese()
"Smoked Mozzarella"

combo()

@spec combo() :: String.t()

Returns a combo string

Examples

iex> Faker.Pizza.combo()
"Hot & Spicy"
iex> Faker.Pizza.combo()
"Breakfast"
iex> Faker.Pizza.combo()
"Thai Chicken"
iex> Faker.Pizza.combo()
"Poutine"

company()

@spec company() :: String.t()

Returns a Pizza Restaurant string

Examples

iex> Faker.Pizza.company()
"Papa Plastique"
iex> Faker.Pizza.company()
"Chicago Deep Dish"
iex> Faker.Pizza.company()
"Pizza Joe’s"
iex> Faker.Pizza.company()
"CosaNostra Pizza"

inches()

@spec inches() :: String.t()

Returns an inches string

Examples

iex> Faker.Pizza.inches()
"9\""
iex> Faker.Pizza.inches()
"10\""
iex> Faker.Pizza.inches()
"16\""
iex> Faker.Pizza.inches()
"14\""

meat()

@spec meat() :: String.t()

Returns a meat string

Examples

iex> Faker.Pizza.meat()
"Buffalo Chicken"
iex> Faker.Pizza.meat()
"Meatballs"
iex> Faker.Pizza.meat()
"Chicken"
iex> Faker.Pizza.meat()
"Meatballs"

pizza()

@spec pizza() :: String.t()

Returns a pizza

Examples

iex> Faker.Pizza.pizza()
"16\" with Fior di latte"
iex> Faker.Pizza.pizza()
"Medium New York Style with Clam and Reindeer"
iex> Faker.Pizza.pizza()
"9\" Africana"
iex> Faker.Pizza.pizza()
"16\" Meat Lovers"

pizzas(range \\ 2..5)

@spec pizzas(integer() | Range.t()) :: [String.t()]

Returns a list with a number of pizzas.

If an integer is provided, exactly that number of pizzas will be returned. If a range is provided, the number will be in the range. If no range or integer is specified it defaults to 2..5

Examples

iex> Faker.Pizza.pizzas()
[
  "14\" Greek Fajita",
  "Large with Reindeer, Buffalo Chicken, Egg, Chorizo, and Clam",
  "9\" Kebab",
  "9\" Sicilian Style Buffalo Chicken"
]
iex> Faker.Pizza.pizzas(2..3)
[
  "12\" Quattro Formaggio",
  "Medium Pesto Chicken"
]
iex> Faker.Pizza.pizzas(3..4)
[
  "Large Gluten-Free Corn with Oysters, Bacon, and Steak",
  "10\" Flatbread Pesto Chicken",
  "30\" Funghi",
  "Small with Sauerkraut"
]
iex> Faker.Pizza.pizzas(5)
[
  "Large Cheese",
  "Small Sweet Potato Crust with Mackerel, Jalapeños, Smoked Mozzarella, and Smoked Salmon",
  "30\" with Pickled Ginger, Meatballs, Goat Cheese, Prosciutto, and Pineapple",
  "9\" Detroit-style with Steak",
  "Family with Clam, Cherry Tomatoes, Salmon, and Chicken"
]

sauce()

@spec sauce() :: String.t()

Returns a sauce string

Examples

iex> Faker.Pizza.sauce()
"Spicy Tomato Sauce"
iex> Faker.Pizza.sauce()
"Hummus"
iex> Faker.Pizza.sauce()
"Pesto Sauce"
iex> Faker.Pizza.sauce()
"Hummus"

size()

@spec size() :: String.t()

Returns a size string

Examples

iex> Faker.Pizza.size()
"Personal"
iex> Faker.Pizza.size()
"Family"
iex> Faker.Pizza.size()
"Large"
iex> Faker.Pizza.size()
"Medium"

size_or_inches()

@spec size_or_inches() :: String.t()

Returns a random size or inches

Examples

iex> Faker.Pizza.size_or_inches()
"Family"
iex> Faker.Pizza.size_or_inches()
"14\""
iex> Faker.Pizza.size_or_inches()
"Personal"
iex> Faker.Pizza.size_or_inches()
"Medium"

style()

@spec style() :: String.t()

Returns a pizza style

Examples

iex> Faker.Pizza.style()
"Pizza Frittata"
iex> Faker.Pizza.style()
"Gluten-Free Corn"
iex> Faker.Pizza.style()
"Detroit-style"
iex> Faker.Pizza.style()
"Stuffed Crust"

topping()

@spec topping() :: String.t()

Returns a random cheese, sauce, meat or vegetarian topping

Examples

iex> Faker.Pizza.topping()
"Black Olives"
iex> Faker.Pizza.topping()
"Meatballs"
iex> Faker.Pizza.topping()
"Asiago"
iex> Faker.Pizza.topping()
"Philly Steak"

toppings(range \\ 2..5)

@spec toppings(integer() | Range.t()) :: [String.t()]

Returns a list with a number of toppings.

If an integer is provided, exactly that number of toppings will be returned. If a range is provided, the number will be in the range. If no range or integer is specified it defaults to 2..5

Examples

iex> Faker.Pizza.toppings()
["Pesto Sauce", "Fior di latte", "Broccoli", "Banana Peppers"]
iex> Faker.Pizza.toppings(4)
["Clam", "Reindeer", "Buffalo Chicken", "Egg"]
iex> Faker.Pizza.toppings(2..3)
["Sausage", "Green Peas"]
iex> Faker.Pizza.toppings(2..3)
["Shellfish", "Smoked Salmon"]

vegetable()

@spec vegetable() :: String.t()

Returns a vegetable string

Examples

iex> Faker.Pizza.vegetable()
"Mango"
iex> Faker.Pizza.vegetable()
"Black Olives"
iex> Faker.Pizza.vegetable()
"Green Olives"
iex> Faker.Pizza.vegetable()
"Sauerkraut"