Sha256: 2ffd2e0a34bda1dcd9cfdfded69f1d6a82b1ff85647999bc40979250beb5e6cc

Contents?: true

Size: 393 Bytes

Versions: 12

Compression:

Stored size: 393 Bytes

Contents

# frozen_string_literal: true

module FFaker
  module CompanyCN
    extend ModuleUtils
    extend self

    TYPES = %w[科技 食品 电器 教育 咨询 网络].freeze
    SUFFIXES = %w[有限公司 公司].freeze

    def name
      "#{NameCN.first_name}#{type}#{suffix}"
    end

    def type
      fetch_sample(TYPES)
    end

    def suffix
      fetch_sample(SUFFIXES)
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
ffaker-2.23.0 lib/ffaker/company_cn.rb
ffaker-2.22.0 lib/ffaker/company_cn.rb
ffaker-2.21.0 lib/ffaker/company_cn.rb
ffaker-2.20.0 lib/ffaker/company_cn.rb
ffaker-2.19.0 lib/ffaker/company_cn.rb
ffaker-2.18.0 lib/ffaker/company_cn.rb
ffaker-2.17.0 lib/ffaker/company_cn.rb
ffaker-2.16.0 lib/ffaker/company_cn.rb
ffaker-2.15.0 lib/ffaker/company_cn.rb
ffaker-2.14.0 lib/ffaker/company_cn.rb
ffaker-2.13.0 lib/ffaker/company_cn.rb
ffaker-2.12.0 lib/ffaker/company_cn.rb