class Nfe::Models::Ide

Constants

APP_TAX_PAYER
MODEL
NOT_CONSUMER
NOT_PRESENT

Public Class Methods

new() click to toggle source
# File lib/nfe/models/ide.rb, line 108
def initialize
  @NFref = []
end

Public Instance Methods

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

  add_elements xml, :cUF, :cNF, :natOp, :indPag

  xml.mod MODEL

  add_elements xml, :serie, :nNF, :dhEmi, :dhSaiEnt, :tpNF, :idDest,
    :cMunFG, :tpImp, :tpEmis, :cDV, :tpAmb, :finNFe

  xml.indFinal NOT_CONSUMER

  xml.indPres NOT_PRESENT

  xml.procEmi APP_TAX_PAYER

  add_elements xml, :verProc, :dhCont, :xJust, :NFref

  xml.target!
end