Class: Nfe::PisSt
- Inherits:
-
Object
- Object
- Nfe::PisSt
- Defined in:
- lib/nfe_reader/taxation/pis_st.rb
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 = {}) ⇒ PisSt
constructor
A new instance of PisSt.
Constructor Details
#initialize(attrs = {}) ⇒ PisSt
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/nfe_reader/taxation/pis_st.rb', line 6 def initialize(attrs = {}) # Valor Base @base = attrs[:vBC] # % PISST @percentage = attrs[:pPIS] # Quantidade @amount = attrs[:qBCProd] # Aliquota PIS ST @aliquot = attrs[:vAliqProd] # Valor PIS ST @value = attrs[:vPIS] end |
Instance Attribute Details
#aliquot ⇒ Object (readonly)
Returns the value of attribute aliquot.
4 5 6 |
# File 'lib/nfe_reader/taxation/pis_st.rb', line 4 def aliquot @aliquot end |
#amount ⇒ Object (readonly)
Returns the value of attribute amount.
4 5 6 |
# File 'lib/nfe_reader/taxation/pis_st.rb', line 4 def amount @amount end |
#base ⇒ Object (readonly)
Returns the value of attribute base.
4 5 6 |
# File 'lib/nfe_reader/taxation/pis_st.rb', line 4 def base @base end |
#percentage ⇒ Object (readonly)
Returns the value of attribute percentage.
4 5 6 |
# File 'lib/nfe_reader/taxation/pis_st.rb', line 4 def percentage @percentage end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
4 5 6 |
# File 'lib/nfe_reader/taxation/pis_st.rb', line 4 def value @value end |