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

Version Path
ffaker-1.30.0 lib/ffaker/company_se.rb
ffaker-1.25.0 lib/ffaker/company_se.rb
ffaker-1.24.0 lib/ffaker/company_se.rb
ffakerer-1.0.2 lib/ffakerer/company_se.rb
ffaker-1.23.0 lib/ffaker/company_se.rb
ffakerer-1.0.1 lib/ffakerer/company_se.rb
ffaker-1.22.1 lib/ffaker/company_se.rb
ffaker-1.22.0 lib/ffaker/company_se.rb
ffaker-1.21.0 lib/ffaker/company_se.rb
ffaker-1.20.0 lib/ffaker/company_se.rb
ffaker-1.19.0 lib/ffaker/company_se.rb
ffaker-1.18.0 lib/ffaker/company_se.rb
ffaker-1.17.0 lib/ffaker/company_se.rb
ffaker-1.16.2 lib/ffaker/company_se.rb
ffaker-1.16.1 lib/ffaker/company_se.rb
ffaker-1.16.0 lib/ffaker/company_se.rb