View Source Faker.Beer (Faker v0.18.0)
Functions for generating Beer related data
Summary
Functions
Returns an alcohol percentage for a beer
Returns a blg for a beer
Returns a Beer brand string
Returns a Hop name string
Returns an IBU(International Bitterness Unit) for a beer
Returns a Malt name string
Returns a Beer name string
Returns a Style name string
Returns a Yeast name string
Functions
@spec alcohol() :: String.t()
Returns an alcohol percentage for a beer
Examples
iex> Faker.Beer.alcohol()
"10.1%"
iex> Faker.Beer.alcohol()
"35.4%"
iex> Faker.Beer.alcohol()
"92.6%"
iex> Faker.Beer.alcohol()
"64.6%"
@spec blg() :: String.t()
Returns a blg for a beer
Examples
iex> Faker.Beer.blg()
"10.1°Blg"
iex> Faker.Beer.blg()
"35.4°Blg"
iex> Faker.Beer.blg()
"92.6°Blg"
iex> Faker.Beer.blg()
"64.6°Blg"
@spec brand() :: String.t()
Returns a Beer brand string
Examples
iex> Faker.Beer.brand()
"Paulaner"
iex> Faker.Beer.brand()
"Pabst Blue Ribbon"
iex> Faker.Beer.brand()
"Kirin Inchiban"
iex> Faker.Beer.brand()
"Birra Moretti"
@spec hop() :: String.t()
Returns a Hop name string
Examples
iex> Faker.Beer.hop()
"Eroica"
iex> Faker.Beer.hop()
"Bullion"
iex> Faker.Beer.hop()
"Mt. Rainier"
iex> Faker.Beer.hop()
"Citra"
@spec ibu() :: String.t()
Returns an IBU(International Bitterness Unit) for a beer
Examples
iex> Faker.Beer.ibu()
"59 IBU"
iex> Faker.Beer.ibu()
"10 IBU"
iex> Faker.Beer.ibu()
"56 IBU"
iex> Faker.Beer.ibu()
"85 IBU"
@spec malt() :: String.t()
Returns a Malt name string
Examples
iex> Faker.Beer.malt()
"Carapils"
iex> Faker.Beer.malt()
"Pale"
iex> Faker.Beer.malt()
"Rye malt"
iex> Faker.Beer.malt()
"Munich"
@spec name() :: String.t()
Returns a Beer name string
Examples
iex> Faker.Beer.name()
"Duvel"
iex> Faker.Beer.name()
"Founders Kentucky Breakfast"
iex> Faker.Beer.name()
"Yeti Imperial Stout"
iex> Faker.Beer.name()
"Stone Imperial Russian Stout"
@spec style() :: String.t()
Returns a Style name string
Examples
iex> Faker.Beer.style()
"Stout"
iex> Faker.Beer.style()
"European Amber Lager"
iex> Faker.Beer.style()
"Strong Ale"
iex> Faker.Beer.style()
"German Wheat And Rye Beer"
@spec yeast() :: String.t()
Returns a Yeast name string
Examples
iex> Faker.Beer.yeast()
"2206 - Bavarian Lager"
iex> Faker.Beer.yeast()
"3763 - Roeselare Ale Blend"
iex> Faker.Beer.yeast()
"3711 - French Saison"
iex> Faker.Beer.yeast()
"3944 - Belgian Witbier"