Module: Faker::Identification
Constant Summary
collapse
- ETHNICITIES =
['African American', 'Asian/Pacific Islander', 'Caucasian', 'Hispanic', 'Native American', 'Multiracial', 'Other', 'Prefer not to respond']
- GENDERS =
%w(Male Female)
Instance Method Summary
collapse
const_missing, k, underscore
Instance Method Details
#drivers_license ⇒ Object
11
12
13
|
# File 'lib/ffaker/identification.rb', line 11
def drivers_license
Faker.bothify('?###-###-##-###-#').upcase
end
|
#ethnicity ⇒ Object
19
20
21
|
# File 'lib/ffaker/identification.rb', line 19
def ethnicity
ETHNICITIES.sample
end
|
#gender ⇒ Object
23
24
25
|
# File 'lib/ffaker/identification.rb', line 23
def gender
GENDERS.sample
end
|
#ssn ⇒ Object
15
16
17
|
# File 'lib/ffaker/identification.rb', line 15
def ssn
Faker.numerify('###-##-####')
end
|