Class: Nfe::Pis

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attrs = {}) ⇒ Pis

Fieds Values

cst:

PISAliq:
  01 - Opera


27
28
29
30
31
32
33
34
35
36
37
38
39
40
# File 'lib/nfe_reader/taxation/pis.rb', line 27

def initialize(attrs = {})
  # Cst PIS
  @cst = attrs[:CST]
  # Base PIS
  @base = attrs[:vBC]
  # % PIS
  @percentage = attrs[:pPIS]
  # Valor PIS
  @value = attrs[:vPIS]
  # Quantidade Vendida
  @amount = attrs[:qBCProd]
  # Alíquota do PIS
  @aliquot = attrs[:vAliqProd]
end

Instance Attribute Details

#aliquotObject (readonly)

Returns the value of attribute aliquot.



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

def aliquot
  @aliquot
end

#amountObject (readonly)

Returns the value of attribute amount.



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

def amount
  @amount
end

#baseObject (readonly)

Returns the value of attribute base.



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

def base
  @base
end

#cstObject (readonly)

Returns the value of attribute cst.



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

def cst
  @cst
end

#percentageObject (readonly)

Returns the value of attribute percentage.



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

def percentage
  @percentage
end

#valueObject (readonly)

Returns the value of attribute value.



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

def value
  @value
end