Class: NfeReader::CofinsSt
- Inherits:
-
Object
- Object
- NfeReader::CofinsSt
- Includes:
- AttributeHelper
- Defined in:
- lib/nfe_reader/taxation/cofins_st.rb
Constant Summary
Constants included from AttributeHelper
Instance Attribute Summary collapse
-
#aliquot ⇒ Object
readonly
Returns the value of attribute aliquot.
-
#amount ⇒ Object
readonly
Returns the value of attribute amount.
-
#base ⇒ Object
readonly
Returns the value of attribute base.
-
#percentage ⇒ Object
readonly
Returns the value of attribute percentage.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ CofinsSt
constructor
A new instance of CofinsSt.
Methods included from AttributeHelper
#attributes, #attributes_to_hash
Constructor Details
#initialize(attrs = {}) ⇒ CofinsSt
Returns a new instance of CofinsSt.
8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/nfe_reader/taxation/cofins_st.rb', line 8 def initialize(attrs = {}) # Valor Base @base = attrs[:vBC] # % COFINS ST @percentage = attrs[:pCOFINS] # Quantidade @amount = attrs[:qBCProd] # Aliquota COFINS ST @aliquot = attrs[:vAliqProd] # Valor COFINS ST @value = attrs[:vCOFINS] end |
Instance Attribute Details
#aliquot ⇒ Object (readonly)
Returns the value of attribute aliquot.
6 7 8 |
# File 'lib/nfe_reader/taxation/cofins_st.rb', line 6 def aliquot @aliquot end |
#amount ⇒ Object (readonly)
Returns the value of attribute amount.
6 7 8 |
# File 'lib/nfe_reader/taxation/cofins_st.rb', line 6 def amount @amount end |
#base ⇒ Object (readonly)
Returns the value of attribute base.
6 7 8 |
# File 'lib/nfe_reader/taxation/cofins_st.rb', line 6 def base @base end |
#percentage ⇒ Object (readonly)
Returns the value of attribute percentage.
6 7 8 |
# File 'lib/nfe_reader/taxation/cofins_st.rb', line 6 def percentage @percentage end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
6 7 8 |
# File 'lib/nfe_reader/taxation/cofins_st.rb', line 6 def value @value end |