Module: Faker::NameCN

Extended by:
ModuleUtils, NameCN
Included in:
NameCN
Defined in:
lib/ffakerer/name_cn.rb

Instance Method Summary collapse

Methods included from ModuleUtils

const_missing, k, underscore

Instance Method Details

#first_nameObject



12
13
14
# File 'lib/ffakerer/name_cn.rb', line 12

def first_name
  FIRST_NAMES.rand
end

#last_firstObject



20
21
22
# File 'lib/ffakerer/name_cn.rb', line 20

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

#last_nameObject



16
17
18
# File 'lib/ffakerer/name_cn.rb', line 16

def last_name
  LAST_NAMES.rand
end

#nameObject



8
9
10
# File 'lib/ffakerer/name_cn.rb', line 8

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