Class: NFe::IdentificacaoNFe

Inherits:
EntidadeNFe show all
Defined in:
lib/nfe/entidades/infNFe/ide/identificacao_nfe.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from EntidadeNFe

nfe_attr, #nfe_attributes, nfe_attrs, #serialize, #to_nfe, #to_nfe_xml, #to_xml, xml_accessor, #xml_to_hash

Instance Attribute Details

#cDVObject

Returns the value of attribute cDV.



20
21
22
# File 'lib/nfe/entidades/infNFe/ide/identificacao_nfe.rb', line 20

def cDV
  @cDV
end

#cMunFGObject

Returns the value of attribute cMunFG.



17
18
19
# File 'lib/nfe/entidades/infNFe/ide/identificacao_nfe.rb', line 17

def cMunFG
  @cMunFG
end

#cNFObject

Returns the value of attribute cNF.



6
7
8
# File 'lib/nfe/entidades/infNFe/ide/identificacao_nfe.rb', line 6

def cNF
  @cNF
end

#cUFObject

Returns the value of attribute cUF.



5
6
7
# File 'lib/nfe/entidades/infNFe/ide/identificacao_nfe.rb', line 5

def cUF
  @cUF
end

#dhContObject

Returns the value of attribute dhCont.



27
28
29
# File 'lib/nfe/entidades/infNFe/ide/identificacao_nfe.rb', line 27

def dhCont
  @dhCont
end

#dhEmiObject

Returns the value of attribute dhEmi.



12
13
14
# File 'lib/nfe/entidades/infNFe/ide/identificacao_nfe.rb', line 12

def dhEmi
  @dhEmi
end

#dSaiEntObject

Returns the value of attribute dSaiEnt.



13
14
15
# File 'lib/nfe/entidades/infNFe/ide/identificacao_nfe.rb', line 13

def dSaiEnt
  @dSaiEnt
end

#finNFeObject

Returns the value of attribute finNFe.



22
23
24
# File 'lib/nfe/entidades/infNFe/ide/identificacao_nfe.rb', line 22

def finNFe
  @finNFe
end

#idDestObject

Returns the value of attribute idDest.



16
17
18
# File 'lib/nfe/entidades/infNFe/ide/identificacao_nfe.rb', line 16

def idDest
  @idDest
end

#indFinalObject

Returns the value of attribute indFinal.



23
24
25
# File 'lib/nfe/entidades/infNFe/ide/identificacao_nfe.rb', line 23

def indFinal
  @indFinal
end

#indPagObject

Returns the value of attribute indPag.



8
9
10
# File 'lib/nfe/entidades/infNFe/ide/identificacao_nfe.rb', line 8

def indPag
  @indPag
end

#indPresObject

Returns the value of attribute indPres.



24
25
26
# File 'lib/nfe/entidades/infNFe/ide/identificacao_nfe.rb', line 24

def indPres
  @indPres
end

#modObject

Returns the value of attribute mod.



9
10
11
# File 'lib/nfe/entidades/infNFe/ide/identificacao_nfe.rb', line 9

def mod
  @mod
end

#natOpObject

Returns the value of attribute natOp.



7
8
9
# File 'lib/nfe/entidades/infNFe/ide/identificacao_nfe.rb', line 7

def natOp
  @natOp
end

#nNFObject

Returns the value of attribute nNF.



11
12
13
# File 'lib/nfe/entidades/infNFe/ide/identificacao_nfe.rb', line 11

def nNF
  @nNF
end

#procEmiObject

Returns the value of attribute procEmi.



25
26
27
# File 'lib/nfe/entidades/infNFe/ide/identificacao_nfe.rb', line 25

def procEmi
  @procEmi
end

#serieObject

Returns the value of attribute serie.



10
11
12
# File 'lib/nfe/entidades/infNFe/ide/identificacao_nfe.rb', line 10

def serie
  @serie
end

#tpAmbObject

Returns the value of attribute tpAmb.



21
22
23
# File 'lib/nfe/entidades/infNFe/ide/identificacao_nfe.rb', line 21

def tpAmb
  @tpAmb
end

#tpEmisObject

Returns the value of attribute tpEmis.



19
20
21
# File 'lib/nfe/entidades/infNFe/ide/identificacao_nfe.rb', line 19

def tpEmis
  @tpEmis
end

#tpImpObject

Returns the value of attribute tpImp.



18
19
20
# File 'lib/nfe/entidades/infNFe/ide/identificacao_nfe.rb', line 18

def tpImp
  @tpImp
end

#tpNFObject

attr_accessor :hSaiEnt



15
16
17
# File 'lib/nfe/entidades/infNFe/ide/identificacao_nfe.rb', line 15

def tpNF
  @tpNF
end

#verProcObject

Returns the value of attribute verProc.



26
27
28
# File 'lib/nfe/entidades/infNFe/ide/identificacao_nfe.rb', line 26

def verProc
  @verProc
end

#xJustObject

Returns the value of attribute xJust.



28
29
30
# File 'lib/nfe/entidades/infNFe/ide/identificacao_nfe.rb', line 28

def xJust
  @xJust
end

Instance Method Details

#attributesObject



30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/nfe/entidades/infNFe/ide/identificacao_nfe.rb', line 30

def attributes
  @attributes = {
      "cUF" => cUF,
      "cNF" => cNF,
      "natOp" => natOp,
      "indPag" => indPag,
      "mod" => mod,
      "serie" => serie,
      "nNF" => nNF,
      "dhEmi" => dhEmi,
      "dSaiEnt" => dSaiEnt,
      "tpNF" => tpNF,
      "idDest" => idDest,
      "cMunFG" => cMunFG,
      "tpImp" => tpImp,
      "tpEmis" => tpEmis,
      "cDV" => cDV,
      "tpAmb" => tpAmb,
      "finNFe" => finNFe,
      "indFinal" => indFinal,
      "indPres" => indPres,
      "procEmi" => procEmi,
      "verProc" => verProc
    }
end

#attributes=(params) ⇒ Object



56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# File 'lib/nfe/entidades/infNFe/ide/identificacao_nfe.rb', line 56

def attributes=(params)
  @attributes = {
      "cUF" => params["cUF"],
      "cNF" => params["cNF"],
      "natOp" => params["natOp"],
      "indPag" => params["indPag"],
      "mod" => params["mod"],
      "serie" => params["serie"],
      "nNF" => params["nNF"],
      "dhEmi" => params["dhEmi"],
      "dSaiEnt" => params["dSaiEnt"],
      "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