Module: FFaker::SSNMX

Extended by:
ModuleUtils, SSNMX
Included in:
SSNMX
Defined in:
lib/ffaker/ssn_mx.rb

Overview

Author Guapolo <github.com/guapolo>

Instance Method Summary collapse

Methods included from ModuleUtils

const_missing, k, underscore

Instance Method Details

#imssObject

es.wikipedia.org/wiki/Instituto_Mexicano_del_Seguro_Social The Social Security number from IMSS (Instituto Mexicano del Seguro Social) is a eleven-digit number in the format “AABBCCDDEE-F”.


26
27
28
# File 'lib/ffaker/ssn_mx.rb', line 26

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

#imss_undashedObject

es.wikipedia.org/wiki/Instituto_Mexicano_del_Seguro_Social The Social Security number from IMSS (Instituto Mexicano del Seguro Social) is a eleven-digit number in the format “AABBCCDDEEF”.


35
36
37
# File 'lib/ffaker/ssn_mx.rb', line 35

def imss_undashed
  FFaker.numerify('###########')
end

#isssteObject

es.wikipedia.org/wiki/Instituto_de_Seguridad_y_Servicios_Sociales_de_los_Trabajadores_del_Estado The Social Security number from ISSSTE (Instituto de Seguridad y Servicios Sociales de los Trabajadores del Estado) is a eleven-digit number in the format “AABBCCDDEE-F”.


44
45
46
# File 'lib/ffaker/ssn_mx.rb', line 44

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

#issste_undashedObject

es.wikipedia.org/wiki/Instituto_de_Seguridad_y_Servicios_Sociales_de_los_Trabajadores_del_Estado The Social Security number from ISSSTE (Instituto de Seguridad y Servicios Sociales de los Trabajadores del Estado) is a eleven-digit number in the format “AABBCCDDEEF”.


53
54
55
# File 'lib/ffaker/ssn_mx.rb', line 53

def issste_undashed
  FFaker.numerify('###########')
end

#ssnObject

The Social Security number is a eleven-digit number in the format “AABBCCDDEE-F”.


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

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

#ssn_undashedObject

The Social Security number is a eleven-digit number in the format “AABBCCDDEEF”.


17
18
19
# File 'lib/ffaker/ssn_mx.rb', line 17

def ssn_undashed
  FFaker.numerify('###########')
end