Class: Nfe::Authorization
- Inherits:
-
Object
- Object
- Nfe::Authorization
- Defined in:
- lib/nfe_reader/authorization.rb
Overview
Pessoas Autorizadas para obter XML
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.
Constructor Details
#initialize(attrs = {}) ⇒ Authorization
Returns a new instance of Authorization.
7 8 9 10 |
# File 'lib/nfe_reader/authorization.rb', line 7 def initialize(attrs = {}) @cnpj = attrs[:CNPJ] @cpf = attrs[:CPF] end |
Instance Attribute Details
#cnpj ⇒ Object (readonly)
Returns the value of attribute cnpj.
5 6 7 |
# File 'lib/nfe_reader/authorization.rb', line 5 def cnpj @cnpj end |
#cpf ⇒ Object (readonly)
Returns the value of attribute cpf.
5 6 7 |
# File 'lib/nfe_reader/authorization.rb', line 5 def cpf @cpf end |