Module: FFaker::NameTH
Overview
Instance Method Summary
collapse
const_missing, k, luhn_check, underscore, unique
#fetch_sample, #rand, #shuffle
Instance Method Details
#first_name ⇒ Object
9
10
11
|
# File 'lib/ffaker/name_th.rb', line 9
def first_name
fetch_sample(FIRST_NAMES)
end
|
#last_name ⇒ Object
13
14
15
|
# File 'lib/ffaker/name_th.rb', line 13
def last_name
fetch_sample(LAST_NAMES)
end
|
#name ⇒ Object
21
22
23
|
# File 'lib/ffaker/name_th.rb', line 21
def name
"#{first_name} #{last_name}"
end
|
#nick_name ⇒ Object
17
18
19
|
# File 'lib/ffaker/name_th.rb', line 17
def nick_name
fetch_sample(NICK_NAMES)
end
|