Method: FFaker::IdentificationMX#curp

Defined in:
lib/ffaker/identification_mx.rb

#curpObject



41
42
43
44
45
46
47
48
49
50
# File 'lib/ffaker/identification_mx.rb', line 41

def curp
  all_letters = CONSONANTS + VOWELS
  hm = %w[H M]
  [
    fetch_sample(CONSONANTS), fetch_sample(VOWELS),
    fetch_sample(all_letters, count: 2).join, date, fetch_sample(hm),
    fetch_sample(ESTADOS_CURP), fetch_sample(CONSONANTS, count: 3).join,
    fetch_sample(HOMOCLAVE), rand(0..9)
  ].join
end