Module: Faker::Identification

Extended by:
Identification, ModuleUtils
Included in:
Identification
Defined in:
lib/ffakerer/identification.rb

Constant Summary collapse

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

Instance Method Summary collapse

Methods included from ModuleUtils

const_missing, k, underscore

Instance Method Details

#drivers_licenseObject



8
9
10
# File 'lib/ffakerer/identification.rb', line 8

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

#ethnicityObject



16
17
18
# File 'lib/ffakerer/identification.rb', line 16

def ethnicity
  ETHNICITIES.rand
end

#genderObject



20
21
22
# File 'lib/ffakerer/identification.rb', line 20

def gender
  GENDERS.rand
end

#ssnObject



12
13
14
# File 'lib/ffakerer/identification.rb', line 12

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