Module: Faker::Identification
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
const_missing, k, underscore
Instance Method Details
#drivers_license ⇒ Object
8
9
10
|
# File 'lib/ffakerer/identification.rb', line 8
def drivers_license
Faker.bothify('?###-###-##-###-#').upcase
end
|
#ethnicity ⇒ Object
16
17
18
|
# File 'lib/ffakerer/identification.rb', line 16
def ethnicity
ETHNICITIES.rand
end
|
#gender ⇒ Object
20
21
22
|
# File 'lib/ffakerer/identification.rb', line 20
def gender
GENDERS.rand
end
|
#ssn ⇒ Object
12
13
14
|
# File 'lib/ffakerer/identification.rb', line 12
def ssn
Faker.numerify('###-##-####')
end
|