Class: Nfe::ImportationTax
- Inherits:
-
Object
- Object
- Nfe::ImportationTax
- 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.
Constructor Details
#initialize(attrs = {}) ⇒ ImportationTax
Returns a new instance of ImportationTax.
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/nfe_reader/taxation/importation_tax.rb', line 6 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.
4 5 6 |
# File 'lib/nfe_reader/taxation/importation_tax.rb', line 4 def base @base end |
#expenditure ⇒ Object (readonly)
Returns the value of attribute expenditure.
4 5 6 |
# File 'lib/nfe_reader/taxation/importation_tax.rb', line 4 def expenditure @expenditure end |
#iof ⇒ Object (readonly)
Returns the value of attribute iof.
4 5 6 |
# File 'lib/nfe_reader/taxation/importation_tax.rb', line 4 def iof @iof end |
#taxes ⇒ Object (readonly)
Returns the value of attribute taxes.
4 5 6 |
# File 'lib/nfe_reader/taxation/importation_tax.rb', line 4 def taxes @taxes end |