Sha256: c359be8086277395126b10e05509026d6dd2c77baca1bfb1815ad64043c43e63
Contents?: true
Size: 529 Bytes
Versions: 12
Compression:
Stored size: 529 Bytes
Contents
# frozen_string_literal: true module FFaker module CompanySE extend ModuleUtils extend self SUFFIXES = %w[AB Aktiebolag Ab].freeze def name case rand(0..3) when 0 then "#{NameSE.last_name} #{suffix}" when 1 then "#{NameSE.last_name}-#{NameSE.last_name}" when 2 then "#{NameSE.last_name}-#{NameSE.last_name} #{suffix}" when 3 then "#{NameSE.last_name}, #{NameSE.last_name} och #{NameSE.last_name}" end end def suffix fetch_sample(SUFFIXES) end end end
Version data entries
12 entries across 12 versions & 1 rubygems