Sha256: b4c9a7c5bc089b382ac1097f56013a6a80700cd5ff81c49d1bd1e6e779a170b7
Contents?: true
Size: 617 Bytes
Versions: 1
Compression:
Stored size: 617 Bytes
Contents
require 'ruby_xml_nfe/pis_aliq' require 'ruby_xml_nfe/pis_outr' module RubyXmlNfe class Pis attr_reader :xml, :pis_aliq_params, :pis_outr_params def initialize(xml, params) @xml = xml @pis_aliq_params = params[:PISAliq] @pis_outr_params = params[:PISOutr] end def build xml.PIS do if pis_aliq_params pis_aliq = RubyXmlNfe::PisAliq.new(xml, pis_aliq_params) pis_aliq.build end if pis_outr_params pis_outr = RubyXmlNfe::PisOutr.new(xml, pis_outr_params) pis_outr.build end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby_xml_nfe-0.1.0 | lib/ruby_xml_nfe/pis.rb |