Class: Identificamex::Rfc::RfcBase

Inherits:
Object
  • Object
show all
Defined in:
lib/identificamex/rfc/rfc_base.rb

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ RfcBase

Returns a new instance of RfcBase.



5
6
7
8
# File 'lib/identificamex/rfc/rfc_base.rb', line 5

def initialize(params)
  @nombre = params[:nombre] || params[:nombre_completo] || params[:razon_social]
  @fecha = params[:fecha] || params[:fecha_nacimiento] || params[:fecha_creacion]
end

Instance Method Details

#nombre_completoObject



14
15
16
# File 'lib/identificamex/rfc/rfc_base.rb', line 14

def nombre_completo
  @nombre.to_s
end

#siglasObject



10
11
12
# File 'lib/identificamex/rfc/rfc_base.rb', line 10

def siglas
  @siglas ||= generar_siglas
end