Module: FFaker::CompanySE
Constant Summary
collapse
- SUFFIXES =
%w(AB Aktiebolag Ab).freeze
Instance Method Summary
collapse
const_missing, k, underscore
#fetch_sample, #rand, #shuffle
Instance Method Details
#name ⇒ Object
10
11
12
13
14
15
16
17
|
# File 'lib/ffaker/company_se.rb', line 10
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
19
20
21
|
# File 'lib/ffaker/company_se.rb', line 19
def suffix
fetch_sample(SUFFIXES)
end
|