Module: Faker::CompanySE

Extended by:
CompanySE, ModuleUtils
Included in:
CompanySE
Defined in:
lib/ffakerer/company_se.rb

Constant Summary collapse

SUFFIXES =
k %w(AB Aktiebolag Ab)

Instance Method Summary collapse

Methods included from ModuleUtils

const_missing, k, underscore

Instance Method Details

#nameObject



8
9
10
11
12
13
14
15
# File 'lib/ffakerer/company_se.rb', line 8

def name
  case rand(3)
  when 0 then "#{NameSE.last_name} #{suffix}"
  when 1 then "#{NameSE.last_name}-#{NameSE.last_name}"
  when 1 then "#{NameSE.last_name}-#{NameSE.last_name} #{suffix}"
  when 2 then "#{NameSE.last_name}, #{NameSE.last_name} och #{NameSE.last_name}"
  end
end

#suffixObject



17
18
19
# File 'lib/ffakerer/company_se.rb', line 17

def suffix
  SUFFIXES.rand
end