Sha256: e3286dca52e84abba182033c058cacfba8e00736cc7eda2a15ed324b6c15027c

Contents?: true

Size: 403 Bytes

Versions: 1

Compression:

Stored size: 403 Bytes

Contents

require 'ruby_xml_nfe/vol'

module RubyXmlNfe
  class Transp
    attr_reader :xml, :modFrete, :vol_params

    def initialize(xml, params)
      @xml = xml
      @modFrete = params[:modFrete]
      @vol_params = params[:vol]
    end

    def build
      xml.transp do
        xml.modFrete modFrete
        ipi_int = RubyXmlNfe::Vol.new(xml, vol_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/transp.rb