Module: FFaker::Identification

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

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

Methods included from ModuleUtils

const_missing, k, underscore

Instance Method Details

#drivers_licenseObject



11
12
13
# File 'lib/ffaker/identification.rb', line 11

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

#ethnicityObject



19
20
21
# File 'lib/ffaker/identification.rb', line 19

def ethnicity
  ETHNICITIES.sample
end

#genderObject



23
24
25
# File 'lib/ffaker/identification.rb', line 23

def gender
  GENDERS.sample
end

#ssnObject



15
16
17
# File 'lib/ffaker/identification.rb', line 15

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