Class: Nfe::Reader::ImportationTax
- Inherits:
-
Object
- Object
- Nfe::Reader::ImportationTax
- Includes:
- AttributeHelper
- Defined in:
- lib/nfe_reader/taxation/importation_tax.rb
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.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/nfe_reader/taxation/importation_tax.rb', line 9 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.
7 8 9 |
# File 'lib/nfe_reader/taxation/importation_tax.rb', line 7 def base @base end |
#expenditure ⇒ Object (readonly)
Returns the value of attribute expenditure.
7 8 9 |
# File 'lib/nfe_reader/taxation/importation_tax.rb', line 7 def expenditure @expenditure end |
#iof ⇒ Object (readonly)
Returns the value of attribute iof.
7 8 9 |
# File 'lib/nfe_reader/taxation/importation_tax.rb', line 7 def iof @iof end |
#taxes ⇒ Object (readonly)
Returns the value of attribute taxes.
7 8 9 |
# File 'lib/nfe_reader/taxation/importation_tax.rb', line 7 def taxes @taxes end |