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