class Nfe::Models::NFeProc

Attributes

nfe[R]
protNFe[R]

Public Class Methods

new(nfe, protNFe) click to toggle source
# File lib/nfe/models/nfeProc.rb, line 9
def initialize(nfe, protNFe)
  @nfe = nfe
  @protNFe = protNFe
end

Public Instance Methods

to_xml() click to toggle source
# File lib/nfe/models/nfeProc.rb, line 14
def to_xml
  xml = Builder::XmlMarkup.new

  xml.nfeProc(xmlns: Models::NFe.namespace, versao: nfe.infNFe.versao) do |node|

    node << @nfe.to_xml

    node << @protNFe.to_xml

  end

  xml.target!
end