Module: FFaker::NameTH

Extended by:
ModuleUtils, NameTH
Included in:
NameTH
Defined in:
lib/ffaker/name_th.rb

Overview

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



9
10
11
# File 'lib/ffaker/name_th.rb', line 9

def first_name
  fetch_sample(FIRST_NAMES)
end

#last_nameObject



13
14
15
# File 'lib/ffaker/name_th.rb', line 13

def last_name
  fetch_sample(LAST_NAMES)
end

#nameObject



21
22
23
# File 'lib/ffaker/name_th.rb', line 21

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

#nick_nameObject



17
18
19
# File 'lib/ffaker/name_th.rb', line 17

def nick_name
  fetch_sample(NICK_NAMES)
end