Sha256: a8651b656dadc0da93d01ed084817d2e64a73aa69a562ea1746362f6dcb4713c

Contents?: true

Size: 531 Bytes

Versions: 1

Compression:

Stored size: 531 Bytes

Contents

# frozen_string_literal: true

module FFakerTW
  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

1 entries across 1 versions & 1 rubygems

Version Path
ffakerTW-0.1.0 lib/ffakerTW/company_se.rb