Sha256: bdd509a35c5bd634b55a647ce0150f59d0a638c48d89703c3c30b4c8f287b496

Contents?: true

Size: 388 Bytes

Versions: 1

Compression:

Stored size: 388 Bytes

Contents

# frozen_string_literal: true

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

1 entries across 1 versions & 1 rubygems

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