Class: FactoryHelper::Name
- Inherits:
-
Base
- Object
- Base
- FactoryHelper::Name
show all
- Defined in:
- lib/factory-helper/name.rb
Constant Summary
Constants inherited
from Base
Base::Letters, Base::Numbers, Base::ULetters
Class Method Summary
collapse
Methods inherited from Base
bothify, fetch, flexible, letterify, method_missing, numerify, parse, rand_in_range, regexify, translate
Class Method Details
.female_first_name ⇒ Object
28
29
30
|
# File 'lib/factory-helper/name.rb', line 28
def female_first_name
fetch('name.female_first_name')
end
|
.first_name ⇒ Object
12
13
14
|
# File 'lib/factory-helper/name.rb', line 12
def first_name
parse('name.first_name')
end
|
.last_name ⇒ Object
16
17
18
|
# File 'lib/factory-helper/name.rb', line 16
def last_name
fetch('name.last_name')
end
|
.male_first_name ⇒ Object
32
33
34
|
# File 'lib/factory-helper/name.rb', line 32
def male_first_name
fetch('name.male_first_name')
end
|
.name ⇒ Object
8
9
10
|
# File 'lib/factory-helper/name.rb', line 8
def name
parse('name.name')
end
|
.prefix ⇒ Object
20
21
22
|
# File 'lib/factory-helper/name.rb', line 20
def prefix
fetch('name.prefix')
end
|
.suffix ⇒ Object
24
25
26
|
# File 'lib/factory-helper/name.rb', line 24
def suffix
fetch('name.suffix')
end
|
.title ⇒ Object
38
39
40
|
# File 'lib/factory-helper/name.rb', line 38
def title
fetch('name.title.descriptor') + ' ' + fetch('name.title.level') + ' ' + fetch('name.title.job')
end
|