Class: ChineseFaker::Name

Inherits:
Base
  • Object
show all
Defined in:
lib/chinese_faker/name.rb

Class Method Summary collapse

Methods inherited from Base

fetch, parse

Class Method Details

.first_nameObject



10
# File 'lib/chinese_faker/name.rb', line 10

def first_name; fetch('name.first_name'); end

.last_nameObject



11
# File 'lib/chinese_faker/name.rb', line 11

def last_name; fetch('name.last_name'); end

.name(opt = {}) ⇒ Object



5
6
7
8
# File 'lib/chinese_faker/name.rb', line 5

def name(opt = {})
  opt[:with_title] ||= false
  parse('name.name', opt[:with_title])
end