class DetranFaker::Habilitacao::CNH
Module responsible for generating fake information that simulates a national driver's license.
Public Class Methods
numero_espelho()
click to toggle source
# File lib/detran_faker/habilitacao/cnh.rb, line 38 def numero_espelho numero_espelho = Habilitacao.random_non_zero_digit 9.times do numero_espelho = numero_espelho.dup.concat Habilitacao.random_single_digit end numero_espelho end
numero_formulario_renach()
click to toggle source
# File lib/detran_faker/habilitacao/cnh.rb, line 48 def numero_formulario_renach renach = Habilitacao.random_state_initials 9.times do renach = renach.dup.concat Habilitacao.random_single_digit end renach end
numero_registro_nacional()
click to toggle source
# File lib/detran_faker/habilitacao/cnh.rb, line 29 def numero_registro_nacional cnh_number = Habilitacao.random_non_zero_digit 10.times do cnh_number = cnh_number.dup.concat Habilitacao.random_single_digit end cnh_number end