Class: CFDI::Entidad
- Inherits:
-
ElementoComprobante
- Object
- ElementoComprobante
- CFDI::Entidad
- Defined in:
- lib/entidad.rb
Overview
Una persona fiscal
Instance Attribute Summary collapse
-
#domicilioFiscal ⇒ CFDI::Domicilio, Hash
El domicilio de esta entidad.
-
#expedidoEn ⇒ CFDI::Domicilio, Hash
El domicilio de la sucursal de emisión.
-
#nombre ⇒ String
El nombre o razón social de la entidad.
-
#regimenFiscal ⇒ String
El régimen fiscal, sólo de un emisor.
-
#rfc ⇒ String
El RFC.
Instance Method Summary collapse
Methods inherited from ElementoComprobante
Constructor Details
This class inherits a constructor from CFDI::ElementoComprobante
Instance Attribute Details
#domicilioFiscal ⇒ CFDI::Domicilio, Hash
El domicilio de esta entidad
10 11 12 |
# File 'lib/entidad.rb', line 10 def domicilioFiscal @domicilioFiscal end |
#expedidoEn ⇒ CFDI::Domicilio, Hash
El domicilio de la sucursal de emisión
10 11 12 |
# File 'lib/entidad.rb', line 10 def expedidoEn @expedidoEn end |
#nombre ⇒ String
El nombre o razón social de la entidad
10 11 12 |
# File 'lib/entidad.rb', line 10 def nombre @nombre end |
#regimenFiscal ⇒ String
El régimen fiscal, sólo de un emisor
10 11 12 |
# File 'lib/entidad.rb', line 10 def regimenFiscal @regimenFiscal end |
Instance Method Details
#cadena_original ⇒ Object
19 20 21 22 23 24 25 26 27 28 |
# File 'lib/entidad.rb', line 19 def cadena_original expedido = @expedidoEn ? @expedidoEn.cadena_original : nil return [ @rfc, @nombre, *@domicilioFiscal.cadena_original, expedido, @regimenFiscal ].flatten end |
#ns ⇒ Object
52 53 54 55 56 57 |
# File 'lib/entidad.rb', line 52 def ns return ({ nombre: @nombre, rfc: @rfc }) end |