Sha256: 70c33582e859f59deb7b5aad9e908a9bae1d0ce605470352f685dfee13967cd6

Contents?: true

Size: 352 Bytes

Versions: 1

Compression:

Stored size: 352 Bytes

Contents

require 'ruby_xml_nfe/icms_tot'

module RubyXmlNfe
  class Total
    attr_reader :xml, :icms_tot_params

    def initialize(xml, params)
      @xml = xml
      @icms_tot_params = params[:ICMSTot]
    end

    def build
      xml.total do
        ipi_int = RubyXmlNfe::IcmsTot.new(xml, icms_tot_params)
        ipi_int.build
      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/total.rb