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
27
28
29
|
# File 'lib/factory-helper/name.rb', line 27
def female_first_name
fetch('name.female_first_name')
end
|
.first_name ⇒ Object
11
12
13
|
# File 'lib/factory-helper/name.rb', line 11
def first_name
parse('name.first_name')
end
|
.last_name ⇒ Object
15
16
17
|
# File 'lib/factory-helper/name.rb', line 15
def last_name
fetch('name.last_name')
end
|
.male_first_name ⇒ Object
31
32
33
|
# File 'lib/factory-helper/name.rb', line 31
def male_first_name
fetch('name.male_first_name')
end
|
.name ⇒ Object
7
8
9
|
# File 'lib/factory-helper/name.rb', line 7
def name
parse('name.name')
end
|
.prefix ⇒ Object
19
20
21
|
# File 'lib/factory-helper/name.rb', line 19
def prefix
fetch('name.prefix')
end
|
.suffix ⇒ Object
23
24
25
|
# File 'lib/factory-helper/name.rb', line 23
def suffix
fetch('name.suffix')
end
|
.title ⇒ Object
37
38
39
|
# File 'lib/factory-helper/name.rb', line 37
def title
fetch('name.title.descriptor') + ' ' + fetch('name.title.level') + ' ' + fetch('name.title.job')
end
|