Module: FFaker::NameTHEN
Instance Method Summary
collapse
const_missing, k, luhn_check, underscore, unique
#fetch_sample, #rand, #shuffle
Instance Method Details
#first_name ⇒ Object
10
11
12
|
# File 'lib/ffaker/name_th_en.rb', line 10
def first_name
fetch_sample(FIRST_NAMES)
end
|
#last_name ⇒ Object
14
15
16
|
# File 'lib/ffaker/name_th_en.rb', line 14
def last_name
fetch_sample(LAST_NAMES)
end
|
#name ⇒ Object
22
23
24
|
# File 'lib/ffaker/name_th_en.rb', line 22
def name
"#{first_name} #{last_name}"
end
|
#nick_name ⇒ Object
18
19
20
|
# File 'lib/ffaker/name_th_en.rb', line 18
def nick_name
fetch_sample(NICK_NAMES)
end
|