Sha256: d31789ccdcbc3aa7c8c408f4077a4fd6ef64ad1f52bdb060b10e3cdc27ef1d52

Contents?: true

Size: 508 Bytes

Versions: 1

Compression:

Stored size: 508 Bytes

Contents

module Faker
  module Identification
    extend ModuleUtils
    extend self

    def drivers_license
      Faker.bothify(true, '?###-###-##-###-#')
    end

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

    def ethnicity
      ETHNICITIES.rand
    end

    def gender
      GENDERS.rand
    end

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ffaker-1.16.0 lib/ffaker/identification.rb