Class: NfeReader::Authorization
- Inherits:
-
Object
- Object
- NfeReader::Authorization
- Includes:
- AttributeHelper
- Defined in:
- lib/nfe_reader/authorization.rb
Overview
Pessoas Autorizadas para obter XML
Constant Summary
Constants included from AttributeHelper
NfeReader::AttributeHelper::WITHELIST
Instance Attribute Summary collapse
-
#cnpj ⇒ Object
readonly
Returns the value of attribute cnpj.
-
#cpf ⇒ Object
readonly
Returns the value of attribute cpf.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Authorization
constructor
A new instance of Authorization.
Methods included from AttributeHelper
#attributes, #attributes_to_hash
Constructor Details
#initialize(attrs = {}) ⇒ Authorization
Returns a new instance of Authorization.
9 10 11 12 |
# File 'lib/nfe_reader/authorization.rb', line 9 def initialize(attrs = {}) @cnpj = attrs[:CNPJ] @cpf = attrs[:CPF] end |
Instance Attribute Details
#cnpj ⇒ Object (readonly)
Returns the value of attribute cnpj.
7 8 9 |
# File 'lib/nfe_reader/authorization.rb', line 7 def cnpj @cnpj end |
#cpf ⇒ Object (readonly)
Returns the value of attribute cpf.
7 8 9 |
# File 'lib/nfe_reader/authorization.rb', line 7 def cpf @cpf end |