Module: Faker::CompanySE
Constant Summary
collapse
- SUFFIXES =
k %w(AB Aktiebolag Ab)
Instance Method Summary
collapse
const_missing, k, underscore
Instance Method Details
#name ⇒ Object
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
|
#suffix ⇒ Object
17
18
19
|
# File 'lib/ffakerer/company_se.rb', line 17
def suffix
SUFFIXES.rand
end
|