Class: Facturama::FacturamaApiMulti

Inherits:
Object
  • Object
show all
Defined in:
lib/facturama/facturama_api_multi.rb

Instance Method Summary collapse

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

#cfdisObject

CFDI (Facturas)



25
26
27
# File 'lib/facturama/facturama_api_multi.rb', line 25

def cfdis
  @cfdi_service
end

#csdsObject

CSD



20
21
22
# File 'lib/facturama/facturama_api_multi.rb', line 20

def csds
  @csd_service
end