Module: Faker::NameVN
Instance Method Summary
collapse
const_missing, k, underscore
Instance Method Details
#first_name ⇒ Object
12
13
14
|
# File 'lib/ffakerer/name_vn.rb', line 12
def first_name
FIRST_NAMES.rand
end
|
#last_first ⇒ Object
24
25
26
|
# File 'lib/ffakerer/name_vn.rb', line 24
def last_first
"#{last_name} #{middle_name} #{first_name}"
end
|
#last_name ⇒ Object
16
17
18
|
# File 'lib/ffakerer/name_vn.rb', line 16
def last_name
LAST_NAMES.rand
end
|
#middle_name ⇒ Object
20
21
22
|
# File 'lib/ffakerer/name_vn.rb', line 20
def middle_name
MIDDLE_NAMES.rand
end
|
#name ⇒ Object
8
9
10
|
# File 'lib/ffakerer/name_vn.rb', line 8
def name
"#{middle_name} #{first_name} #{last_name}"
end
|