Sha256: 41e6be66062852e108e1edb04a80ccccf578dd109bfcb489f71200c37a97068b

Contents?: true

Size: 627 Bytes

Versions: 1

Compression:

Stored size: 627 Bytes

Contents

# frozen_string_literal: true

module FFakerTW
  module IdentificationIT
    extend ModuleUtils
    extend self

    ETHNICITIES = [
      'Afroamericano', 'Asiatico/isolano del Pacifico', 'Caucasico', 'Ispanico', 'Nativo americano',
      'Multirazziale', 'Altro', 'Preferisco non rispondere'
    ].freeze
    GENDERS = %w[Maschio Femmina].freeze

    def drivers_license
      FFakerTW::String.from_regexp(/U1[1-9]\d{7}[A-Z]/)
    end

    def ssn
      FFakerTW.numerify('####################')
    end

    def ethnicity
      fetch_sample(ETHNICITIES)
    end

    def gender
      fetch_sample(GENDERS)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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