Class: NfeReader::ImportationTax

Inherits:
Object
  • Object
show all
Includes:
AttributeHelper
Defined in:
lib/nfe_reader/taxation/importation_tax.rb

Constant Summary

Constants included from AttributeHelper

AttributeHelper::WITHELIST

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from AttributeHelper

#attributes, #attributes_to_hash

Constructor Details

#initialize(attrs = {}) ⇒ ImportationTax

Returns a new instance of ImportationTax.



8
9
10
11
12
13
14
15
16
17
# File 'lib/nfe_reader/taxation/importation_tax.rb', line 8

def initialize(attrs = {})
  # Base de Caluclo
  @base = attrs[:vBC]
  # Despesas Aduaneiras
  @expenditure = attrs[:vDespAdu]
  # Imposto de Importação
  @taxes = attrs[:vII]
  # IOF
  @iof = attrs[:vIOF]
end

Instance Attribute Details

#baseObject (readonly)

Returns the value of attribute base.



6
7
8
# File 'lib/nfe_reader/taxation/importation_tax.rb', line 6

def base
  @base
end

#expenditureObject (readonly)

Returns the value of attribute expenditure.



6
7
8
# File 'lib/nfe_reader/taxation/importation_tax.rb', line 6

def expenditure
  @expenditure
end

#iofObject (readonly)

Returns the value of attribute iof.



6
7
8
# File 'lib/nfe_reader/taxation/importation_tax.rb', line 6

def iof
  @iof
end

#taxesObject (readonly)

Returns the value of attribute taxes.



6
7
8
# File 'lib/nfe_reader/taxation/importation_tax.rb', line 6

def taxes
  @taxes
end