Class: Forgery::Name

Inherits:
Forgery show all
Defined in:
lib/forgery/forgery/name.rb

Constant Summary

Constants inherited from Forgery

VERSION

Class Method Summary collapse

Methods inherited from Forgery

Extend, dictionaries, formats, load_from!, load_paths, rails?, rails_root

Class Method Details

.company_nameObject


23
24
25
# File 'lib/forgery/forgery/name.rb', line 23

def self.company_name
  dictionaries[:company_names].random.unextend
end

.female_first_nameObject


19
20
21
# File 'lib/forgery/forgery/name.rb', line 19

def self.female_first_name
  dictionaries[:female_first_names].random.unextend
end

.first_nameObject


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

def self.first_name
  Forgery::Extend(dictionaries[:male_first_names] + dictionaries[:female_first_names]).random.unextend
end

.full_nameObject


11
12
13
# File 'lib/forgery/forgery/name.rb', line 11

def self.full_name
  "#{self.first_name} #{self.last_name}"
end

.industryObject


47
48
49
# File 'lib/forgery/forgery/name.rb', line 47

def self.industry
  dictionaries[:industries].random.unextend
end

.job_titleObject


27
28
29
# File 'lib/forgery/forgery/name.rb', line 27

def self.job_title
  dictionaries[:job_titles].random.sub('#{N}', self.job_title_suffix).unextend
end

.job_title_suffixObject


31
32
33
# File 'lib/forgery/forgery/name.rb', line 31

def self.job_title_suffix
  dictionaries[:job_title_suffixes].random.unextend
end

.last_nameObject


3
4
5
# File 'lib/forgery/forgery/name.rb', line 3

def self.last_name
  dictionaries[:last_names].random.unextend
end

.locationObject


43
44
45
# File 'lib/forgery/forgery/name.rb', line 43

def self.location
  dictionaries[:locations].random.unextend
end

.male_first_nameObject


15
16
17
# File 'lib/forgery/forgery/name.rb', line 15

def self.male_first_name
  dictionaries[:male_first_names].random.unextend
end

.suffixObject


39
40
41
# File 'lib/forgery/forgery/name.rb', line 39

def self.suffix
  dictionaries[:name_suffixes].random.unextend
end

.titleObject


35
36
37
# File 'lib/forgery/forgery/name.rb', line 35

def self.title
  dictionaries[:name_titles].random.unextend
end