View Source Faker.Commerce.PtBr (Faker v0.18.0)
Functions for generating commerce related data in Brazilian Portuguese.
Summary
Functions
Returns a random color.
Returns a random department
Returns a complete product name, based on product adjectives, product materials, product names
Returns a random adjective for a product
Returns a random product material
Returns a random product name
Functions
@spec color() :: String.t()
Returns a random color.
Examples
iex> Faker.Commerce.PtBr.color()
"Vermelho(a)"
iex> Faker.Commerce.PtBr.color()
"Verde"
iex> Faker.Commerce.PtBr.color()
"Marrom"
iex> Faker.Commerce.PtBr.color()
"Rosa"
@spec department() :: String.t()
Returns a random department
Examples
iex> Faker.Commerce.PtBr.department()
"Eletrônicos, TV e Áudio"
iex> Faker.Commerce.PtBr.department()
"Alimentos e bebidas"
iex> Faker.Commerce.PtBr.department()
"Livros"
iex> Faker.Commerce.PtBr.department()
"Beleza e cuidados pessoais"
@spec product_name() :: String.t()
Returns a complete product name, based on product adjectives, product materials, product names
Examples
iex> Faker.Commerce.PtBr.product_name()
"Cadeira Gigante de Algodão"
iex> Faker.Commerce.PtBr.product_name()
"Computador de Granito"
iex> Faker.Commerce.PtBr.product_name()
"Bolsa Médio(a)"
iex> Faker.Commerce.PtBr.product_name()
"Escrivaninha Grande"
@spec product_name_adjective() :: String.t()
Returns a random adjective for a product
Examples
iex> Faker.Commerce.PtBr.product_name_adjective()
"Gigante"
iex> Faker.Commerce.PtBr.product_name_adjective()
"Rústico(a)"
iex> Faker.Commerce.PtBr.product_name_adjective()
"Gigante"
iex> Faker.Commerce.PtBr.product_name_adjective()
"Elegante"
@spec product_name_material() :: String.t()
Returns a random product material
Examples
iex> Faker.Commerce.PtBr.product_name_material()
"Plástico"
iex> Faker.Commerce.PtBr.product_name_material()
"Aço"
iex> Faker.Commerce.PtBr.product_name_material()
"Concreto"
iex> Faker.Commerce.PtBr.product_name_material()
"Algodão"
@spec product_name_product() :: String.t()
Returns a random product name
Examples
iex> Faker.Commerce.PtBr.product_name_product()
"Guarda-roupa"
iex> Faker.Commerce.PtBr.product_name_product()
"Cadeira"
iex> Faker.Commerce.PtBr.product_name_product()
"Cobertor"
iex> Faker.Commerce.PtBr.product_name_product()
"Sandália"