File: ssn_mx.rb

package info (click to toggle)
ruby-ffaker 2.23.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,776 kB
  • sloc: ruby: 12,788; makefile: 8; sh: 1
file content (56 lines) | stat: -rw-r--r-- 1,744 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# frozen_string_literal: true

module FFaker
  module SSNMX
    extend ModuleUtils
    extend self

    # The Social Security number is a eleven-digit number in the format
    # "AABBCCDDEE-F".
    def ssn
      FFaker.numerify('##########-#')
    end

    # The Social Security number is a eleven-digit number in the format
    # "AABBCCDDEEF".
    def ssn_undashed
      FFaker.numerify('###########')
    end

    # http://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".
    def imss
      FFaker.numerify('##########-#')
    end

    # http://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".
    def imss_undashed
      FFaker.numerify('###########')
    end

    # http://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".
    def issste
      FFaker.numerify('##########-#')
    end

    # http://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".
    def issste_undashed
      FFaker.numerify('###########')
    end
  end
end