Class: Nfe::Reader::Issqn

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from AttributeHelper

#attributes, #attributes_to_hash

Constructor Details

#initialize(attrs = {}) ⇒ Issqn

Fields Values

cStiTrib : N - NORMAL;

R - RETIDA;
S - SUBSTITUTA;
I - ISENTA


16
17
18
19
20
21
22
23
# File 'lib/nfe_reader/taxation/issqn.rb', line 16

def initialize(attrs = {})
  @base = attrs[:vBC]
  @aliquot = attrs[:vAliq]
  @value = attrs[:vISSQN]
  @city = attrs[:cMunFG]
  @services = attrs[:cListServ]
  @cst = attrs[:cSitTrib]
end

Instance Attribute Details

#aliquotObject

Returns the value of attribute aliquot.



7
8
9
# File 'lib/nfe_reader/taxation/issqn.rb', line 7

def aliquot
  @aliquot
end

#baseObject

Returns the value of attribute base.



7
8
9
# File 'lib/nfe_reader/taxation/issqn.rb', line 7

def base
  @base
end

#cityObject

Returns the value of attribute city.



7
8
9
# File 'lib/nfe_reader/taxation/issqn.rb', line 7

def city
  @city
end

#cstObject

Returns the value of attribute cst.



7
8
9
# File 'lib/nfe_reader/taxation/issqn.rb', line 7

def cst
  @cst
end

#servicesObject

Returns the value of attribute services.



7
8
9
# File 'lib/nfe_reader/taxation/issqn.rb', line 7

def services
  @services
end

#valueObject

Returns the value of attribute value.



7
8
9
# File 'lib/nfe_reader/taxation/issqn.rb', line 7

def value
  @value
end