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, underscore

Instance Method Details

#first_nameObject


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

def first_name
  FIRST_NAMES.sample
end

#last_nameObject


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

def last_name
  LAST_NAMES.sample
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
  NICK_NAMES.sample
end