Module: FFaker::NameTHEN

Extended by:
ModuleUtils, NameTHEN
Included in:
NameTHEN
Defined in:
lib/ffaker/name_th_en.rb

Instance Method Summary collapse

Methods included from ModuleUtils

const_missing, k, luhn_check, underscore, unique

Methods included from RandomUtils

#fetch_sample, #rand, #shuffle

Instance Method Details

#first_nameObject



10
11
12
# File 'lib/ffaker/name_th_en.rb', line 10

def first_name
  fetch_sample(FIRST_NAMES)
end

#last_nameObject



14
15
16
# File 'lib/ffaker/name_th_en.rb', line 14

def last_name
  fetch_sample(LAST_NAMES)
end

#nameObject



22
23
24
# File 'lib/ffaker/name_th_en.rb', line 22

def name
  "#{first_name} #{last_name}"
end

#nick_nameObject



18
19
20
# File 'lib/ffaker/name_th_en.rb', line 18

def nick_name
  fetch_sample(NICK_NAMES)
end