View Source Faker.Currency (Faker v0.18.0)
Functions for generating currency related data
Summary
Functions
@spec code() :: String.t()
Returns a random currency code
Examples
iex> Faker.Currency.code()
"WST"
iex> Faker.Currency.code()
"UYU"
iex> Faker.Currency.code()
"CRC"
iex> Faker.Currency.code()
"DOP"
@spec symbol() :: String.t()
Returns a random currency symbol
Examples
iex> Faker.Currency.symbol()
"£"
iex> Faker.Currency.symbol()
"฿"
iex> Faker.Currency.symbol()
"ƒ"
iex> Faker.Currency.symbol()
"Rp"