Sha256: ecaed6d087183b3c035115041cf3857f45331d440fabbc947419b9b2a2b5a134
Contents?: true
Size: 1.44 KB
Versions: 1
Compression:
Stored size: 1.44 KB
Contents
require 'nokogiri' module RubyXmlNfe class Ide attr_reader :xml, :cUF, :cNF, :natOp, :mod, :serie, :nNF, :dhEmi, :dhSaiEnt, :tpNF, :idDest, :cMunFG, :tpImp, :tpEmis, :cDV, :tpAmb, :finNFe, :indFinal, :indPres, :procEmi, :verProc def initialize(xml, params) @xml = xml @cUF = params[:cUF] @cNF = params[:cNF] @natOp = params[:natOp] @mod = params[:mod] @serie = params[:serie] @nNF = params[:nNF] @dhEmi = params[:dhEmi] @dhSaiEnt = params[:dhSaiEnt] @tpNF = params[:tpNF] @idDest = params[:idDest] @cMunFG = params[:cMunFG] @tpImp = params[:tpImp] @tpEmis = params[:tpEmis] @cDV = params[:cDV] @tpAmb = params[:tpAmb] @finNFe = params[:finNFe] @indFinal = params[:indFinal] @indPres = params[:indPres] @procEmi = params[:procEmi] @verProc = params[:verProc] end def build xml.ide do xml.cUF cUF xml.cNF cNF xml.natOp natOp xml.mod mod xml.serie serie xml.nNF nNF xml.dhEmi dhEmi xml.dhSaiEnt dhSaiEnt if dhSaiEnt xml.tpNF tpNF xml.idDest idDest xml.cMunFG cMunFG xml.tpImp tpImp xml.tpEmis tpEmis xml.cDV cDV xml.tpAmb tpAmb xml.finNFe finNFe xml.indFinal indFinal xml.indPres indPres xml.procEmi procEmi xml.verProc verProc 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/ide.rb |