module FFaker::IdentificationESCO
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' ? rand(1..2) : rand(1..3) "#{category}#{num}" end
def driver_license_category category = fetch_sample(LICENSE_CATEGORY) # the categories are A1 A2 B1 B2 B3 C1 C2 C3 num = category == 'A' ? rand(1..2) : rand(1..3) "#{category}#{num}" end