Class: Nfe::CofinsSt

Inherits:
Object
  • Object
show all
Defined in:
lib/nfe_reader/taxation/cofins_st.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attrs = {}) ⇒ CofinsSt

Returns a new instance of CofinsSt.



6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/nfe_reader/taxation/cofins_st.rb', line 6

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

#aliquotObject (readonly)

Returns the value of attribute aliquot.



4
5
6
# File 'lib/nfe_reader/taxation/cofins_st.rb', line 4

def aliquot
  @aliquot
end

#amountObject (readonly)

Returns the value of attribute amount.



4
5
6
# File 'lib/nfe_reader/taxation/cofins_st.rb', line 4

def amount
  @amount
end

#baseObject (readonly)

Returns the value of attribute base.



4
5
6
# File 'lib/nfe_reader/taxation/cofins_st.rb', line 4

def base
  @base
end

#percentageObject (readonly)

Returns the value of attribute percentage.



4
5
6
# File 'lib/nfe_reader/taxation/cofins_st.rb', line 4

def percentage
  @percentage
end

#valueObject (readonly)

Returns the value of attribute value.



4
5
6
# File 'lib/nfe_reader/taxation/cofins_st.rb', line 4

def value
  @value
end