Sha256: 0ccb1ca6e599c00296cda6c27c0c6afa5f63f6ccd5c40dd7ef0d11b06833501d
Contents?: true
Size: 560 Bytes
Versions: 4
Compression:
Stored size: 560 Bytes
Contents
# encoding: utf-8 module FFaker module Identification extend ModuleUtils extend self ETHNICITIES = ['African American', 'Asian/Pacific Islander', 'Caucasian', 'Hispanic', 'Native American', 'Multiracial', 'Other', 'Prefer not to respond'].freeze GENDERS = %w(Male Female).freeze def drivers_license FFaker.bothify('?###-###-##-###-#').upcase end def ssn FFaker.numerify('###-##-####') end def ethnicity fetch_sample(ETHNICITIES) end def gender fetch_sample(GENDERS) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ffaker-2.6.0 | lib/ffaker/identification.rb |
ffaker-2.5.0 | lib/ffaker/identification.rb |
ffaker-2.4.0 | lib/ffaker/identification.rb |
ffaker-2.3.0 | lib/ffaker/identification.rb |