class RubyXmlNfe::Total

Attributes

icms_tot_params[R]
xml[R]

Public Class Methods

new(xml, params) click to toggle source
# File lib/ruby_xml_nfe/total.rb, line 7
def initialize(xml, params)
  @xml = xml
  @icms_tot_params = params[:ICMSTot]
end

Public Instance Methods

build() click to toggle source
# File lib/ruby_xml_nfe/total.rb, line 12
def build
  xml.total do
    ipi_int = RubyXmlNfe::IcmsTot.new(xml, icms_tot_params)
    ipi_int.build
  end
end