class RubyXmlNfe::Transp

Attributes

modFrete[R]
vol_params[R]
xml[R]

Public Class Methods

new(xml, params) click to toggle source
# File lib/ruby_xml_nfe/transp.rb, line 7
def initialize(xml, params)
  @xml = xml
  @modFrete = params[:modFrete]
  @vol_params = params[:vol]
end

Public Instance Methods

build() click to toggle source
# File lib/ruby_xml_nfe/transp.rb, line 13
def build
  xml.transp do
    xml.modFrete modFrete
    ipi_int = RubyXmlNfe::Vol.new(xml, vol_params)
    ipi_int.build
  end
end