Class: NfeReader::PisSt

Inherits:
Object
  • Object
show all
Includes:
AttributeHelper
Defined in:
lib/nfe_reader/taxation/pis_st.rb

Constant Summary

Constants included from AttributeHelper

AttributeHelper::WITHELIST

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from AttributeHelper

#attributes, #attributes_to_hash

Constructor Details

#initialize(attrs = {}) ⇒ PisSt

Returns a new instance of PisSt.



8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/nfe_reader/taxation/pis_st.rb', line 8

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

#aliquotObject (readonly)

Returns the value of attribute aliquot.



6
7
8
# File 'lib/nfe_reader/taxation/pis_st.rb', line 6

def aliquot
  @aliquot
end

#amountObject (readonly)

Returns the value of attribute amount.



6
7
8
# File 'lib/nfe_reader/taxation/pis_st.rb', line 6

def amount
  @amount
end

#baseObject (readonly)

Returns the value of attribute base.



6
7
8
# File 'lib/nfe_reader/taxation/pis_st.rb', line 6

def base
  @base
end

#percentageObject (readonly)

Returns the value of attribute percentage.



6
7
8
# File 'lib/nfe_reader/taxation/pis_st.rb', line 6

def percentage
  @percentage
end

#valueObject (readonly)

Returns the value of attribute value.



6
7
8
# File 'lib/nfe_reader/taxation/pis_st.rb', line 6

def value
  @value
end