Sha256: 03d6dc2c5614be3fb1b45372b0d7b72be2b1f21dbf16d42106463e129c1b3656
Contents?: true
Size: 356 Bytes
Versions: 3
Compression:
Stored size: 356 Bytes
Contents
require 'ostruct' require 'nokogiri' module FacturaePrint class Invoice < OpenStruct def initialize(xml_file) super(nil) xml = Nokogiri::XML(xml_file) FacturaePrint::XMLObjectifier.build(xml.root, :object => self, :collection_nodes => ["Invoices", "TaxesOutputs", "Items"]) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
facturae_print-0.0.4 | lib/facturae_print/invoice.rb |
facturae_print-0.0.3 | lib/facturae_print/invoice.rb |
facturae_print-0.0.2 | lib/facturae_print/invoice.rb |