Sha256: 50d80abcd9c1d5ebe91c11e5a513f79e64920e8a4bc2d8a1346cf7dbeb6d4ec0
Contents?: true
Size: 1.29 KB
Versions: 1
Compression:
Stored size: 1.29 KB
Contents
require "buho_cfdi/version" require "nokogiri" require "buho_cfdi/i18n" require "buho_cfdi/base_node" require_relative "buho_cfdi/nodes/collection" require_relative "buho_cfdi/nodes/cfdi_related" require_relative "buho_cfdi/nodes/concept" require_relative "buho_cfdi/nodes/customs_information" require_relative "buho_cfdi/nodes/issuer" require_relative "buho_cfdi/nodes/receipt" require_relative "buho_cfdi/nodes/receiver" require_relative "buho_cfdi/nodes/related" require_relative "buho_cfdi/nodes/tax_detained" require_relative "buho_cfdi/nodes/tax_transferred" require_relative "buho_cfdi/nodes/property_account" require_relative "buho_cfdi/nodes/part" require_relative "buho_cfdi/nodes/taxes" require_relative "buho_cfdi/nodes/detained" require_relative "buho_cfdi/nodes/transferred" require "buho_cfdi/params_builder" require "buho_cfdi/strategy" require "buho_cfdi/certificate" require "buho_cfdi/key" module BuhoCfdi class XmlProcessor attr_accessor :strategy, :receipt, :cfdi def initialize(params) @strategy = XML_BUILDING_STRATEGY @receipt = BuhoCfdi::ParamsBuilder.new(params).receipt end def process_xml @cfdi = strategy.call(receipt) # file = File.new('xml_example.xml', 'w+') # file.write(cfdi.to_xml) # file.close cfdi end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
buho_cfdi-0.1.12 | lib/buho_cfdi.rb |