forked from elixirs/faker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathit.ex
50 lines (43 loc) · 1.07 KB
/
it.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
42
43
44
45
46
47
48
49
50
defmodule Faker.Internet.It do
import Faker, only: [sampler: 2]
@moduledoc """
Generating internet related data in Italian
"""
@doc """
Returns a random free email service name
## Examples
iex> Faker.Internet.It.free_email_service()
"virgilio.it"
iex> Faker.Internet.It.free_email_service()
"yahoo.it"
iex> Faker.Internet.It.free_email_service()
"aruba.it"
iex> Faker.Internet.It.free_email_service()
"gmail.com"
"""
@spec free_email_service() :: String.t()
sampler(:free_email_service, [
"gmail.com",
"yahoo.it",
"hotmail.it",
"aruba.it",
"libero.it",
"alice.it",
"virgilio.it",
"tin.it"
])
@doc """
Returns a random domain suffix
## Examples
iex> Faker.Internet.It.domain_suffix()
"com"
iex> Faker.Internet.It.domain_suffix()
"it"
iex> Faker.Internet.It.domain_suffix()
"com"
iex> Faker.Internet.It.domain_suffix()
"biz"
"""
@spec domain_suffix() :: String.t()
sampler(:domain_suffix, ["com", "it", "info", "org", "biz"])
end