Sha256: cc08e993719cb829c3bb676460afa063ad038a5f8afb87de5818b2820667f61d

Contents?: true

Size: 560 Bytes

Versions: 6

Compression:

Stored size: 560 Bytes

Contents

# encoding: utf-8

module FFaker
  module Identification
    extend ModuleUtils
    extend self

    ETHNICITIES = ['African American', 'Asian/Pacific Islander', 'Caucasian', 'Hispanic', 'Native American', 'Multiracial', 'Other', 'Prefer not to respond'].freeze
    GENDERS = %w[Male Female].freeze

    def drivers_license
      FFaker.bothify('?###-###-##-###-#').upcase
    end

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

    def ethnicity
      fetch_sample(ETHNICITIES)
    end

    def gender
      fetch_sample(GENDERS)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ffaker-2.11.0 lib/ffaker/identification.rb
ffaker-2.10.0 lib/ffaker/identification.rb
ffaker-2.9.0 lib/ffaker/identification.rb
ffaker-2.8.1 lib/ffaker/identification.rb
ffaker-2.8.0 lib/ffaker/identification.rb
ffaker-2.7.0 lib/ffaker/identification.rb