Class: Nfe::Fuel
- Inherits:
-
Object
- Object
- Nfe::Fuel
- Defined in:
- lib/nfe_reader/product/fuel.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
readonly
Returns the value of attribute amount.
-
#anp ⇒ Object
readonly
Returns the value of attribute anp.
-
#cide_aliquot ⇒ Object
readonly
Returns the value of attribute cide_aliquot.
-
#cide_base ⇒ Object
readonly
Returns the value of attribute cide_base.
-
#cide_value ⇒ Object
readonly
Returns the value of attribute cide_value.
-
#codif ⇒ Object
readonly
Returns the value of attribute codif.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Fuel
constructor
A new instance of Fuel.
Constructor Details
#initialize(attrs = {}) ⇒ Fuel
Returns a new instance of Fuel.
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/nfe_reader/product/fuel.rb', line 6 def initialize(attrs = {}) @anp = attrs[:cProdANP] @codif = attrs[:CODIF] @amount = attrs[:qTemp] if attrs[:CIDE] @cide_base = attrs[:CIDE][:qBCprod] @cide_aliquot = attrs[:CIDE][:vAliqProd] @cide_value = attrs[:CIDE][:vCIDE] end end |
Instance Attribute Details
#amount ⇒ Object (readonly)
Returns the value of attribute amount.
4 5 6 |
# File 'lib/nfe_reader/product/fuel.rb', line 4 def amount @amount end |
#anp ⇒ Object (readonly)
Returns the value of attribute anp.
4 5 6 |
# File 'lib/nfe_reader/product/fuel.rb', line 4 def anp @anp end |
#cide_aliquot ⇒ Object (readonly)
Returns the value of attribute cide_aliquot.
4 5 6 |
# File 'lib/nfe_reader/product/fuel.rb', line 4 def cide_aliquot @cide_aliquot end |
#cide_base ⇒ Object (readonly)
Returns the value of attribute cide_base.
4 5 6 |
# File 'lib/nfe_reader/product/fuel.rb', line 4 def cide_base @cide_base end |
#cide_value ⇒ Object (readonly)
Returns the value of attribute cide_value.
4 5 6 |
# File 'lib/nfe_reader/product/fuel.rb', line 4 def cide_value @cide_value end |
#codif ⇒ Object (readonly)
Returns the value of attribute codif.
4 5 6 |
# File 'lib/nfe_reader/product/fuel.rb', line 4 def codif @codif end |