lib/ffaker/identification.rb



module Faker
  module Identification
    extend ModuleUtils
    extend self

    def drivers_license
      Faker.bothify('?###-###-##-###-#').upcase
    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