-
Notifications
You must be signed in to change notification settings - Fork 212
/
pt_br.ex
41 lines (34 loc) · 1.04 KB
/
pt_br.ex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
defmodule Faker.Internet.PtBr do
import Faker, only: [sampler: 2]
@moduledoc """
Generating internet related data in Brazilian Portuguese
"""
@doc """
Returns a random free email service name
## Examples
iex> Faker.Internet.PtBr.free_email_service()
"gmail.com"
iex> Faker.Internet.PtBr.free_email_service()
"yahoo.com"
iex> Faker.Internet.PtBr.free_email_service()
"gmail.com"
iex> Faker.Internet.PtBr.free_email_service()
"bol.com.br"
"""
@spec free_email_service() :: String
sampler(:free_email_service, ["gmail.com", "yahoo.com", "hotmail.com", "live.com", "bol.com.br"])
@doc """
Returns a random domain suffix
## Examples
iex> Faker.Internet.PtBr.domain_suffix()
"br"
iex> Faker.Internet.PtBr.domain_suffix()
"org"
iex> Faker.Internet.PtBr.domain_suffix()
"name"
iex> Faker.Internet.PtBr.domain_suffix()
"info"
"""
@spec domain_suffix() :: String.t()
sampler(:domain_suffix, ["br", "biz", "info", "name", "net", "org"])
end