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