class Nfe::Models::ProcEventoNFe

Attributes

evento[R]
retEvento[R]

Public Class Methods

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

Public Instance Methods

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

  xml.procEventoNFe(xmlns: Models::NFe.namespace, versao: evento.versao) do |node|

    node << @evento.to_xml

    node << @retEvento.to_xml

  end

  xml.target!
end