Sha256: 4930ee08208281636cafa8259b91df57680ab173d2f449ddc2fada623fc310b7
Contents?: true
Size: 529 Bytes
Versions: 5
Compression:
Stored size: 529 Bytes
Contents
# encoding: utf-8 module Faker module Identification extend ModuleUtils extend self ETHNICITIES = ['African American', 'Asian/Pacific Islander', 'Caucasian', 'Hispanic', 'Native American', 'Multiracial', 'Other', 'Prefer not to respond'] GENDERS = %w(Male Female) def drivers_license Faker.bothify('?###-###-##-###-#').upcase end def ssn Faker.numerify('###-##-####') end def ethnicity ETHNICITIES.sample end def gender GENDERS.sample end end end
Version data entries
5 entries across 5 versions & 2 rubygems