Class: NFe::IcmsTot
- Inherits:
-
EntidadeNFe
- Object
- EntidadeNFe
- NFe::IcmsTot
- Defined in:
- lib/nfe/entidades/infNFe/total/icmstot.rb
Instance Attribute Summary collapse
-
#vBC ⇒ Object
Returns the value of attribute vBC.
-
#vBCST ⇒ Object
Returns the value of attribute vBCST.
-
#vCOFINS ⇒ Object
Returns the value of attribute vCOFINS.
-
#vDesc ⇒ Object
Returns the value of attribute vDesc.
-
#vFCPUFDest ⇒ Object
Returns the value of attribute vFCPUFDest.
-
#vFrete ⇒ Object
Returns the value of attribute vFrete.
-
#vICMS ⇒ Object
Returns the value of attribute vICMS.
-
#vICMSDeson ⇒ Object
Returns the value of attribute vICMSDeson.
-
#vICMSUFDest ⇒ Object
Returns the value of attribute vICMSUFDest.
-
#vICMSUFRemet ⇒ Object
Returns the value of attribute vICMSUFRemet.
-
#vII ⇒ Object
Returns the value of attribute vII.
-
#vIPI ⇒ Object
Returns the value of attribute vIPI.
-
#vNF ⇒ Object
Returns the value of attribute vNF.
-
#vOutro ⇒ Object
Returns the value of attribute vOutro.
-
#vPIS ⇒ Object
Returns the value of attribute vPIS.
-
#vProd ⇒ Object
Returns the value of attribute vProd.
-
#vSeg ⇒ Object
Returns the value of attribute vSeg.
-
#vST ⇒ Object
Returns the value of attribute vST.
-
#vTotTrib ⇒ Object
Returns the value of attribute vTotTrib.
Instance Method Summary collapse
- #attributes ⇒ Object
- #attributes=(params) ⇒ Object
-
#initialize(attrs = {}) ⇒ IcmsTot
constructor
A new instance of IcmsTot.
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
#vBC ⇒ Object
Returns the value of attribute vBC.
4 5 6 |
# File 'lib/nfe/entidades/infNFe/total/icmstot.rb', line 4 def vBC @vBC end |
#vBCST ⇒ Object
Returns the value of attribute vBCST.
10 11 12 |
# File 'lib/nfe/entidades/infNFe/total/icmstot.rb', line 10 def vBCST @vBCST end |
#vCOFINS ⇒ Object
Returns the value of attribute vCOFINS.
19 20 21 |
# File 'lib/nfe/entidades/infNFe/total/icmstot.rb', line 19 def vCOFINS @vCOFINS end |
#vDesc ⇒ Object
Returns the value of attribute vDesc.
15 16 17 |
# File 'lib/nfe/entidades/infNFe/total/icmstot.rb', line 15 def vDesc @vDesc end |
#vFCPUFDest ⇒ Object
Returns the value of attribute vFCPUFDest.
7 8 9 |
# File 'lib/nfe/entidades/infNFe/total/icmstot.rb', line 7 def vFCPUFDest @vFCPUFDest end |
#vFrete ⇒ Object
Returns the value of attribute vFrete.
13 14 15 |
# File 'lib/nfe/entidades/infNFe/total/icmstot.rb', line 13 def vFrete @vFrete end |
#vICMS ⇒ Object
Returns the value of attribute vICMS.
5 6 7 |
# File 'lib/nfe/entidades/infNFe/total/icmstot.rb', line 5 def vICMS @vICMS end |
#vICMSDeson ⇒ Object
Returns the value of attribute vICMSDeson.
6 7 8 |
# File 'lib/nfe/entidades/infNFe/total/icmstot.rb', line 6 def vICMSDeson @vICMSDeson end |
#vICMSUFDest ⇒ Object
Returns the value of attribute vICMSUFDest.
8 9 10 |
# File 'lib/nfe/entidades/infNFe/total/icmstot.rb', line 8 def vICMSUFDest @vICMSUFDest end |
#vICMSUFRemet ⇒ Object
Returns the value of attribute vICMSUFRemet.
9 10 11 |
# File 'lib/nfe/entidades/infNFe/total/icmstot.rb', line 9 def vICMSUFRemet @vICMSUFRemet end |
#vII ⇒ Object
Returns the value of attribute vII.
16 17 18 |
# File 'lib/nfe/entidades/infNFe/total/icmstot.rb', line 16 def vII @vII end |
#vIPI ⇒ Object
Returns the value of attribute vIPI.
17 18 19 |
# File 'lib/nfe/entidades/infNFe/total/icmstot.rb', line 17 def vIPI @vIPI end |
#vNF ⇒ Object
Returns the value of attribute vNF.
21 22 23 |
# File 'lib/nfe/entidades/infNFe/total/icmstot.rb', line 21 def vNF @vNF end |
#vOutro ⇒ Object
Returns the value of attribute vOutro.
20 21 22 |
# File 'lib/nfe/entidades/infNFe/total/icmstot.rb', line 20 def vOutro @vOutro end |
#vPIS ⇒ Object
Returns the value of attribute vPIS.
18 19 20 |
# File 'lib/nfe/entidades/infNFe/total/icmstot.rb', line 18 def vPIS @vPIS end |
#vProd ⇒ Object
Returns the value of attribute vProd.
12 13 14 |
# File 'lib/nfe/entidades/infNFe/total/icmstot.rb', line 12 def vProd @vProd end |
#vSeg ⇒ Object
Returns the value of attribute vSeg.
14 15 16 |
# File 'lib/nfe/entidades/infNFe/total/icmstot.rb', line 14 def vSeg @vSeg end |
#vST ⇒ Object
Returns the value of attribute vST.
11 12 13 |
# File 'lib/nfe/entidades/infNFe/total/icmstot.rb', line 11 def vST @vST end |
#vTotTrib ⇒ Object
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
#attributes ⇒ Object
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 |