Class: Identificamex::Rfc::RfcBase
- Inherits:
-
Object
- Object
- Identificamex::Rfc::RfcBase
- Defined in:
- lib/identificamex/rfc/rfc_base.rb
Instance Method Summary collapse
-
#initialize(params) ⇒ RfcBase
constructor
A new instance of RfcBase.
- #nombre_completo ⇒ Object
- #siglas ⇒ Object
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_completo ⇒ Object
14 15 16 |
# File 'lib/identificamex/rfc/rfc_base.rb', line 14 def nombre_completo @nombre.to_s end |
#siglas ⇒ Object
10 11 12 |
# File 'lib/identificamex/rfc/rfc_base.rb', line 10 def siglas @siglas ||= generar_siglas end |