Module: FFaker::NameVN

Extended by:
ModuleUtils, NameVN
Included in:
NameVN
Defined in:
lib/ffaker/name_vn.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



12
13
14
# File 'lib/ffaker/name_vn.rb', line 12

def first_name
  fetch_sample(FIRST_NAMES)
end

#last_firstObject



24
25
26
# File 'lib/ffaker/name_vn.rb', line 24

def last_first
  "#{last_name} #{middle_name} #{first_name}"
end

#last_nameObject



16
17
18
# File 'lib/ffaker/name_vn.rb', line 16

def last_name
  fetch_sample(LAST_NAMES)
end

#middle_nameObject



20
21
22
# File 'lib/ffaker/name_vn.rb', line 20

def middle_name
  fetch_sample(MIDDLE_NAMES)
end

#nameObject



8
9
10
# File 'lib/ffaker/name_vn.rb', line 8

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