lib/ffaker/company_se.rb



# 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