Class: NfeReader::ImportationTax
- Inherits:
-
Object
- Object
- NfeReader::ImportationTax
- Includes:
- AttributeHelper
- Defined in:
- lib/nfe_reader/taxation/importation_tax.rb
Constant Summary
Constants included from AttributeHelper
Instance Attribute Summary collapse
-
#base ⇒ Object
readonly
Returns the value of attribute base.
-
#expenditure ⇒ Object
readonly
Returns the value of attribute expenditure.
-
#iof ⇒ Object
readonly
Returns the value of attribute iof.
-
#taxes ⇒ Object
readonly
Returns the value of attribute taxes.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ ImportationTax
constructor
A new instance of ImportationTax.
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
#base ⇒ Object (readonly)
Returns the value of attribute base.
6 7 8 |
# File 'lib/nfe_reader/taxation/importation_tax.rb', line 6 def base @base end |
#expenditure ⇒ Object (readonly)
Returns the value of attribute expenditure.
6 7 8 |
# File 'lib/nfe_reader/taxation/importation_tax.rb', line 6 def expenditure @expenditure end |
#iof ⇒ Object (readonly)
Returns the value of attribute iof.
6 7 8 |
# File 'lib/nfe_reader/taxation/importation_tax.rb', line 6 def iof @iof end |
#taxes ⇒ Object (readonly)
Returns the value of attribute taxes.
6 7 8 |
# File 'lib/nfe_reader/taxation/importation_tax.rb', line 6 def taxes @taxes end |