Sha256: 4bd5aff36c34fed63dabc611a4cea2cc79b8400828a366804e43620f1be637d9

Contents?: true

Size: 621 Bytes

Versions: 5

Compression:

Stored size: 621 Bytes

Contents

# frozen_string_literal: true

module FFaker
  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
      FFaker::String.from_regexp(/U1[1-9]\d{7}[A-Z]/)
    end

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

    def ethnicity
      fetch_sample(ETHNICITIES)
    end

    def gender
      fetch_sample(GENDERS)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ffaker-2.23.0 lib/ffaker/identification_it.rb
ffaker-2.22.0 lib/ffaker/identification_it.rb
ffaker-2.21.0 lib/ffaker/identification_it.rb
ffaker-2.20.0 lib/ffaker/identification_it.rb
ffaker-2.19.0 lib/ffaker/identification_it.rb