forked from elixirs/faker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
industry.ex
76 lines (63 loc) · 1.64 KB
/
industry.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
defmodule Faker.Industry do
import Faker, only: [localize: 1]
@moduledoc """
Functions for generating Industry related data
Reference https://en.wikipedia.org/wiki/Industry_Classification_Benchmark
"""
@doc """
Returns a Industry name string
## Examples
iex> Faker.Industry.industry
"Oil & Gas"
iex> Faker.Industry.industry
"Basic Materials"
iex> Faker.Industry.industry
"Consumer Services"
iex> Faker.Industry.industry
"Health Care"
"""
@spec industry() :: String.t()
localize(:industry)
@doc """
Returns a Super Sector name string
## Examples
iex> Faker.Industry.super_sector
"Automobiles & Parts"
iex> Faker.Industry.super_sector
"Banks"
iex> Faker.Industry.super_sector
"Automobiles & Parts"
iex> Faker.Industry.super_sector
"Health Care"
"""
@spec super_sector() :: String.t()
localize(:super_sector)
@doc """
Returns a Sector name string
## Examples
iex> Faker.Industry.sector
"Food & Drug Retailers"
iex> Faker.Industry.sector
"Banks"
iex> Faker.Industry.sector
"Software & Computer Services"
iex> Faker.Industry.sector
"Media"
"""
@spec sector() :: String.t()
localize(:sector)
@doc """
Returns a Sub Sector name string
## Examples
iex> Faker.Industry.sub_sector()
"Electrical Components & Equipment"
iex> Faker.Industry.sub_sector()
"Publishing"
iex> Faker.Industry.sub_sector()
"Alternative Electricity"
iex> Faker.Industry.sub_sector()
"Forestry"
"""
@spec sub_sector() :: String.t()
localize(:sub_sector)
end