Class: Faker::Name
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, regexify, translate
Class Method Details
.first_name ⇒ Object
11
|
# File 'lib/faker/name.rb', line 11
def first_name; fetch('name.first_name'); end
|
.last_name ⇒ Object
12
|
# File 'lib/faker/name.rb', line 12
def last_name; fetch('name.last_name'); end
|
.name ⇒ Object
7
8
9
|
# File 'lib/faker/name.rb', line 7
def name
parse('name.name')
end
|
.prefix ⇒ Object
13
|
# File 'lib/faker/name.rb', line 13
def prefix; fetch('name.prefix'); end
|
.suffix ⇒ Object
14
|
# File 'lib/faker/name.rb', line 14
def suffix; fetch('name.suffix'); end
|
.title ⇒ Object
18
|
# File 'lib/faker/name.rb', line 18
def title; fetch('name.title.descriptor') + ' ' + fetch('name.title.level') + ' ' + fetch('name.title.job'); end
|