Class: RubyXmlNfe::Ide
- Inherits:
-
Object
- Object
- RubyXmlNfe::Ide
- Defined in:
- lib/ruby_xml_nfe/ide.rb
Instance Attribute Summary collapse
-
#cDV ⇒ Object
readonly
Returns the value of attribute cDV.
-
#cMunFG ⇒ Object
readonly
Returns the value of attribute cMunFG.
-
#cNF ⇒ Object
readonly
Returns the value of attribute cNF.
-
#cUF ⇒ Object
readonly
Returns the value of attribute cUF.
-
#dhEmi ⇒ Object
readonly
Returns the value of attribute dhEmi.
-
#dhSaiEnt ⇒ Object
readonly
Returns the value of attribute dhSaiEnt.
-
#finNFe ⇒ Object
readonly
Returns the value of attribute finNFe.
-
#idDest ⇒ Object
readonly
Returns the value of attribute idDest.
-
#indFinal ⇒ Object
readonly
Returns the value of attribute indFinal.
-
#indPres ⇒ Object
readonly
Returns the value of attribute indPres.
-
#mod ⇒ Object
readonly
Returns the value of attribute mod.
-
#natOp ⇒ Object
readonly
Returns the value of attribute natOp.
-
#nNF ⇒ Object
readonly
Returns the value of attribute nNF.
-
#procEmi ⇒ Object
readonly
Returns the value of attribute procEmi.
-
#serie ⇒ Object
readonly
Returns the value of attribute serie.
-
#tpAmb ⇒ Object
readonly
Returns the value of attribute tpAmb.
-
#tpEmis ⇒ Object
readonly
Returns the value of attribute tpEmis.
-
#tpImp ⇒ Object
readonly
Returns the value of attribute tpImp.
-
#tpNF ⇒ Object
readonly
Returns the value of attribute tpNF.
-
#verProc ⇒ Object
readonly
Returns the value of attribute verProc.
-
#xml ⇒ Object
readonly
Returns the value of attribute xml.
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(xml, params) ⇒ Ide
constructor
A new instance of Ide.
Constructor Details
#initialize(xml, params) ⇒ Ide
Returns a new instance of Ide.
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/ruby_xml_nfe/ide.rb', line 8 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 |
Instance Attribute Details
#cDV ⇒ Object (readonly)
Returns the value of attribute cDV.
5 6 7 |
# File 'lib/ruby_xml_nfe/ide.rb', line 5 def cDV @cDV end |
#cMunFG ⇒ Object (readonly)
Returns the value of attribute cMunFG.
5 6 7 |
# File 'lib/ruby_xml_nfe/ide.rb', line 5 def cMunFG @cMunFG end |
#cNF ⇒ Object (readonly)
Returns the value of attribute cNF.
5 6 7 |
# File 'lib/ruby_xml_nfe/ide.rb', line 5 def cNF @cNF end |
#cUF ⇒ Object (readonly)
Returns the value of attribute cUF.
5 6 7 |
# File 'lib/ruby_xml_nfe/ide.rb', line 5 def cUF @cUF end |
#dhEmi ⇒ Object (readonly)
Returns the value of attribute dhEmi.
5 6 7 |
# File 'lib/ruby_xml_nfe/ide.rb', line 5 def dhEmi @dhEmi end |
#dhSaiEnt ⇒ Object (readonly)
Returns the value of attribute dhSaiEnt.
5 6 7 |
# File 'lib/ruby_xml_nfe/ide.rb', line 5 def dhSaiEnt @dhSaiEnt end |
#finNFe ⇒ Object (readonly)
Returns the value of attribute finNFe.
5 6 7 |
# File 'lib/ruby_xml_nfe/ide.rb', line 5 def finNFe @finNFe end |
#idDest ⇒ Object (readonly)
Returns the value of attribute idDest.
5 6 7 |
# File 'lib/ruby_xml_nfe/ide.rb', line 5 def idDest @idDest end |
#indFinal ⇒ Object (readonly)
Returns the value of attribute indFinal.
5 6 7 |
# File 'lib/ruby_xml_nfe/ide.rb', line 5 def indFinal @indFinal end |
#indPres ⇒ Object (readonly)
Returns the value of attribute indPres.
5 6 7 |
# File 'lib/ruby_xml_nfe/ide.rb', line 5 def indPres @indPres end |
#mod ⇒ Object (readonly)
Returns the value of attribute mod.
5 6 7 |
# File 'lib/ruby_xml_nfe/ide.rb', line 5 def mod @mod end |
#natOp ⇒ Object (readonly)
Returns the value of attribute natOp.
5 6 7 |
# File 'lib/ruby_xml_nfe/ide.rb', line 5 def natOp @natOp end |
#nNF ⇒ Object (readonly)
Returns the value of attribute nNF.
5 6 7 |
# File 'lib/ruby_xml_nfe/ide.rb', line 5 def nNF @nNF end |
#procEmi ⇒ Object (readonly)
Returns the value of attribute procEmi.
5 6 7 |
# File 'lib/ruby_xml_nfe/ide.rb', line 5 def procEmi @procEmi end |
#serie ⇒ Object (readonly)
Returns the value of attribute serie.
5 6 7 |
# File 'lib/ruby_xml_nfe/ide.rb', line 5 def serie @serie end |
#tpAmb ⇒ Object (readonly)
Returns the value of attribute tpAmb.
5 6 7 |
# File 'lib/ruby_xml_nfe/ide.rb', line 5 def tpAmb @tpAmb end |
#tpEmis ⇒ Object (readonly)
Returns the value of attribute tpEmis.
5 6 7 |
# File 'lib/ruby_xml_nfe/ide.rb', line 5 def tpEmis @tpEmis end |
#tpImp ⇒ Object (readonly)
Returns the value of attribute tpImp.
5 6 7 |
# File 'lib/ruby_xml_nfe/ide.rb', line 5 def tpImp @tpImp end |
#tpNF ⇒ Object (readonly)
Returns the value of attribute tpNF.
5 6 7 |
# File 'lib/ruby_xml_nfe/ide.rb', line 5 def tpNF @tpNF end |
#verProc ⇒ Object (readonly)
Returns the value of attribute verProc.
5 6 7 |
# File 'lib/ruby_xml_nfe/ide.rb', line 5 def verProc @verProc end |
#xml ⇒ Object (readonly)
Returns the value of attribute xml.
5 6 7 |
# File 'lib/ruby_xml_nfe/ide.rb', line 5 def xml @xml end |
Instance Method Details
#build ⇒ Object
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/ruby_xml_nfe/ide.rb', line 32 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 |