Class: NfeReader::Issqn
- Inherits:
-
Object
- Object
- NfeReader::Issqn
- Includes:
- AttributeHelper
- Defined in:
- lib/nfe_reader/taxation/issqn.rb
Constant Summary
Constants included from AttributeHelper
Instance Attribute Summary collapse
-
#aliquot ⇒ Object
Returns the value of attribute aliquot.
-
#base ⇒ Object
Returns the value of attribute base.
-
#city ⇒ Object
Returns the value of attribute city.
-
#cst ⇒ Object
Returns the value of attribute cst.
-
#services ⇒ Object
Returns the value of attribute services.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Issqn
constructor
Fields Values.
Methods included from AttributeHelper
#attributes, #attributes_to_hash
Constructor Details
#initialize(attrs = {}) ⇒ Issqn
Fields Values
cStiTrib : N - NORMAL;
R - RETIDA;
S - SUBSTITUTA;
I - ISENTA
15 16 17 18 19 20 21 22 |
# File 'lib/nfe_reader/taxation/issqn.rb', line 15 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
#aliquot ⇒ Object
Returns the value of attribute aliquot.
6 7 8 |
# File 'lib/nfe_reader/taxation/issqn.rb', line 6 def aliquot @aliquot end |
#base ⇒ Object
Returns the value of attribute base.
6 7 8 |
# File 'lib/nfe_reader/taxation/issqn.rb', line 6 def base @base end |
#city ⇒ Object
Returns the value of attribute city.
6 7 8 |
# File 'lib/nfe_reader/taxation/issqn.rb', line 6 def city @city end |
#cst ⇒ Object
Returns the value of attribute cst.
6 7 8 |
# File 'lib/nfe_reader/taxation/issqn.rb', line 6 def cst @cst end |
#services ⇒ Object
Returns the value of attribute services.
6 7 8 |
# File 'lib/nfe_reader/taxation/issqn.rb', line 6 def services @services end |
#value ⇒ Object
Returns the value of attribute value.
6 7 8 |
# File 'lib/nfe_reader/taxation/issqn.rb', line 6 def value @value end |