Class: NFe::IcmsTot

Inherits:
EntidadeNFe show all
Defined in:
lib/nfe/entidades/infNFe/total/icmstot.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

Constructor Details

#initialize(attrs = {}) ⇒ IcmsTot

Returns a new instance of IcmsTot.



24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# File 'lib/nfe/entidades/infNFe/total/icmstot.rb', line 24

def initialize(attrs = {})
 self.vBC = attrs[:vBC]
 self.vICMS = attrs[:vICMS]
 self.vICMSDeson = attrs[:vICMSDeson]
 self.vFCPUFDest = attrs[:vFCPUFDest] 
 self.vICMSUFDest = attrs[:vICMSUFDest]
 self.vICMSUFRemet = attrs[:vICMSUFRemet]
 self.vBCST = attrs[:vBCST]
 self.vST = attrs[:vST]
 self.vProd = attrs[:vProd]
 self.vFrete = attrs[:vFrete]
 self.vSeg = attrs[:vSeg]
 self.vDesc = attrs[:vDesc]
 self.vII = attrs[:vII]
 self.vIPI = attrs[:vIPI]
 self.vPIS = attrs[:vPIS]
 self.vCOFINS = attrs[:vCOFINS]
 self.vOutro = attrs[:vOutro]
 self.vNF = attrs[:vNF]
 self.vTotTrib = attrs[:vTotTrib]
end

Instance Attribute Details

#vBCObject

Returns the value of attribute vBC.



4
5
6
# File 'lib/nfe/entidades/infNFe/total/icmstot.rb', line 4

def vBC
  @vBC
end

#vBCSTObject

Returns the value of attribute vBCST.



10
11
12
# File 'lib/nfe/entidades/infNFe/total/icmstot.rb', line 10

def vBCST
  @vBCST
end

#vCOFINSObject

Returns the value of attribute vCOFINS.



19
20
21
# File 'lib/nfe/entidades/infNFe/total/icmstot.rb', line 19

def vCOFINS
  @vCOFINS
end

#vDescObject

Returns the value of attribute vDesc.



15
16
17
# File 'lib/nfe/entidades/infNFe/total/icmstot.rb', line 15

def vDesc
  @vDesc
end

#vFCPUFDestObject

Returns the value of attribute vFCPUFDest.



7
8
9
# File 'lib/nfe/entidades/infNFe/total/icmstot.rb', line 7

def vFCPUFDest
  @vFCPUFDest
end

#vFreteObject

Returns the value of attribute vFrete.



13
14
15
# File 'lib/nfe/entidades/infNFe/total/icmstot.rb', line 13

def vFrete
  @vFrete
end

#vICMSObject

Returns the value of attribute vICMS.



5
6
7
# File 'lib/nfe/entidades/infNFe/total/icmstot.rb', line 5

def vICMS
  @vICMS
end

#vICMSDesonObject

Returns the value of attribute vICMSDeson.



6
7
8
# File 'lib/nfe/entidades/infNFe/total/icmstot.rb', line 6

def vICMSDeson
  @vICMSDeson
end

#vICMSUFDestObject

Returns the value of attribute vICMSUFDest.



8
9
10
# File 'lib/nfe/entidades/infNFe/total/icmstot.rb', line 8

def vICMSUFDest
  @vICMSUFDest
end

#vICMSUFRemetObject

Returns the value of attribute vICMSUFRemet.



9
10
11
# File 'lib/nfe/entidades/infNFe/total/icmstot.rb', line 9

def vICMSUFRemet
  @vICMSUFRemet
end

#vIIObject

Returns the value of attribute vII.



16
17
18
# File 'lib/nfe/entidades/infNFe/total/icmstot.rb', line 16

def vII
  @vII
end

#vIPIObject

Returns the value of attribute vIPI.



17
18
19
# File 'lib/nfe/entidades/infNFe/total/icmstot.rb', line 17

def vIPI
  @vIPI
end

#vNFObject

Returns the value of attribute vNF.



21
22
23
# File 'lib/nfe/entidades/infNFe/total/icmstot.rb', line 21

def vNF
  @vNF
end

#vOutroObject

Returns the value of attribute vOutro.



20
21
22
# File 'lib/nfe/entidades/infNFe/total/icmstot.rb', line 20

def vOutro
  @vOutro
end

#vPISObject

Returns the value of attribute vPIS.



18
19
20
# File 'lib/nfe/entidades/infNFe/total/icmstot.rb', line 18

def vPIS
  @vPIS
end

#vProdObject

Returns the value of attribute vProd.



12
13
14
# File 'lib/nfe/entidades/infNFe/total/icmstot.rb', line 12

def vProd
  @vProd
end

#vSegObject

Returns the value of attribute vSeg.



14
15
16
# File 'lib/nfe/entidades/infNFe/total/icmstot.rb', line 14

def vSeg
  @vSeg
end

#vSTObject

Returns the value of attribute vST.



11
12
13
# File 'lib/nfe/entidades/infNFe/total/icmstot.rb', line 11

def vST
  @vST
end

#vTotTribObject

Returns the value of attribute vTotTrib.



22
23
24
# File 'lib/nfe/entidades/infNFe/total/icmstot.rb', line 22

def vTotTrib
  @vTotTrib
end

Instance Method Details

#attributesObject



46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# File 'lib/nfe/entidades/infNFe/total/icmstot.rb', line 46

def attributes
  @attributes = {
   "vBC" => vBC,
   "vICMS" => vICMS,
   "vICMSDeson" => vICMSDeson,
   "vFCPUFDest" => vFCPUFDest, 
   "vICMSUFDest" => vICMSUFDest,
   "vICMSUFRemet" => vICMSUFRemet,
   "vBCST" => vBCST,
   "vST" => vST,
   "vProd" => vProd,
   "vFrete" => vFrete,
   "vSeg" => vSeg,
   "vDesc" => vDesc,
   "vII" => vII,
   "vIPI" => vIPI,
   "vPIS" => vPIS,
   "vCOFINS" => vCOFINS,
   "vOutro" => vOutro,
   "vNF" => vNF,
   "vTotTrib" => vTotTrib
    }
end

#attributes=(params) ⇒ Object



70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# File 'lib/nfe/entidades/infNFe/total/icmstot.rb', line 70

def attributes=(params)
 self.vBC = params['vBC'],
 self.vICMS = params['vICMS'],
 self.vICMSDeson = params['vICMSDeson'],
 self.vFCPUFDest = params['vFCPUFDest'],
 self.vICMSUFDest = params['vICMSUFDest'],
 self.vICMSUFRemet = params['vICMSUFRemet'],
 self.vBCST = params['vBCST'],
 self.vST = params['vST'],
 self.vProd = params['vProd'],
 self.vFrete = params['vFrete'],
 self.vSeg = params['vSeg'],
 self.vDesc = params['vDesc'],
 self.vII = params['vII'],
 self.vIPI = params['vIPI'],
 self.vPIS = params['vPIS'],
 self.vCOFINS = params['vCOFINS'],
 self.vOutro = params['vOutro'],
 self.vNF = params['vNF'],
 self.vTotTrib = params['vTotTrib']
end