Sha256: bec17d7c980fff75a1a5b0cf0581a0c43fec8ef743d16b2706dff597da840f1f
Contents?: true
Size: 499 Bytes
Versions: 5
Compression:
Stored size: 499 Bytes
Contents
# encoding: utf-8 module Faker module CompanySE extend ModuleUtils extend self SUFFIXES = %w(AB Aktiebolag Ab) 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 def suffix SUFFIXES.sample end end end
Version data entries
5 entries across 5 versions & 2 rubygems