Faker v0.12.0 Faker.Beer View Source
Functions for generating Beer related data
Link to this section 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
Link to this section Functions
Link to this function
alcohol()
View Source
alcohol()
View Source
alcohol() :: String.t()
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%"
Link to this function
blg()
View Source
blg()
View Source
blg() :: String.t()
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"
Link to this function
brand()
View Source
brand()
View Source
brand() :: String.t()
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"
Link to this function
hop()
View Source
hop()
View Source
hop() :: String.t()
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"
Link to this function
ibu()
View Source
ibu()
View Source
ibu() :: String.t()
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"
Link to this function
malt()
View Source
malt()
View Source
malt() :: String.t()
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"
Link to this function
name()
View Source
name()
View Source
name() :: String.t()
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"
Link to this function
style()
View Source
style()
View Source
style() :: String.t()
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"
Link to this function
yeast()
View Source
yeast()
View Source
yeast() :: String.t()
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"