Class: DutchFaker::Company

Inherits:
Object
  • Object
show all
Defined in:
lib/dutchfaker/company.rb

Constant Summary collapse

SUFFIXES =
%w(B.V. NV V.O.F.)
Formats =
[
  Proc.new { [ Name.last_name, suffix ].join(' ') },
  Proc.new { [ Name.last_name, suffix ].join(' ') },
  Proc.new { [ Name.last_name, suffix ].join(' ') },
  Proc.new { [ Name.last_name, suffix ].join(' ') },
  Proc.new { [ Name.last_name, Name.last_name ].join('-') },
  Proc.new { "%s, %s en %s" % [ Name.last_name, Name.last_name, Name.last_name ] }
]

Class Method Summary collapse

Class Method Details

.nameObject



15
16
17
# File 'lib/dutchfaker/company.rb', line 15

def name
  Formats.rand.call
end

.suffixObject



19
20
21
# File 'lib/dutchfaker/company.rb', line 19

def suffix
  SUFFIXES.rand
end