module FFaker::IdentificationESCO
def blood_type # RH
def blood_type # RH sign = fetch_sample(%w(+ -)) "#{fetch_sample(BLOOD_TYPE)}#{sign}" end
def driver_license_category
def driver_license_category category = fetch_sample(LICENSE_CATEGORY) # the categories are A1 A2 B1 B2 B3 C1 C2 C3 num = category == 'A' ? 1 + rand(2) : 1 + rand(3) "#{category}#{num}" end
def drivers_license
def drivers_license how_many_numbers = 6 + rand(8) FFaker.numerify('#' * how_many_numbers) end
def expedition_date
def expedition_date today = Date.today today - rand(today.year) end