Class: Faker::Name

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

Constant Summary

Constants inherited from Base

Base::Letters, Base::Numbers, Base::ULetters

Class Method Summary collapse

Methods inherited from Base

bothify, fetch, flexible, letterify, method_missing, numerify, parse, rand_in_range, regexify, translate

Class Method Details

.first_nameObject



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

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

.last_nameObject



12
# File 'lib/faker/name.rb', line 12

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

.nameObject



7
8
9
# File 'lib/faker/name.rb', line 7

def name
  parse('name.name')
end

.prefixObject



13
# File 'lib/faker/name.rb', line 13

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

.suffixObject



14
# File 'lib/faker/name.rb', line 14

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

.titleObject

Generate a buzzword-laden job title Wordlist from www.bullshitjob.com/title/



18
# File 'lib/faker/name.rb', line 18

def title; fetch('name.title.descriptor') + ' ' + fetch('name.title.level') + ' ' + fetch('name.title.job'); end