Class: Facturama::FacturamaApiMulti
- Inherits:
-
Object
- Object
- Facturama::FacturamaApiMulti
- Defined in:
- lib/facturama/facturama_api_multi.rb
Instance Method Summary collapse
-
#cfdis ⇒ Object
CFDI (Facturas).
-
#csds ⇒ Object
CSD.
-
#initialize(facturama_user, facturama_password, is_development = true) ⇒ FacturamaApiMulti
constructor
A new instance of FacturamaApiMulti.
Constructor Details
#initialize(facturama_user, facturama_password, is_development = true) ⇒ FacturamaApiMulti
Returns a new instance of FacturamaApiMulti.
12 13 14 15 16 17 |
# File 'lib/facturama/facturama_api_multi.rb', line 12 def initialize(facturama_user, facturama_password, is_development = true) @connection_info = Facturama::Models::ConnectionInfo.new(facturama_user, facturama_password, is_development) @cfdi_service = Facturama::Services::CfdiMultiService.new(@connection_info) @csd_service = Facturama::Services::CsdService.new(@connection_info) end |
Instance Method Details
#cfdis ⇒ Object
CFDI (Facturas)
25 26 27 |
# File 'lib/facturama/facturama_api_multi.rb', line 25 def cfdis @cfdi_service end |
#csds ⇒ Object
CSD
20 21 22 |
# File 'lib/facturama/facturama_api_multi.rb', line 20 def csds @csd_service end |