Class: NfeReader::Authorization

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#cnpjObject (readonly)

Returns the value of attribute cnpj.



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

def cnpj
  @cnpj
end

#cpfObject (readonly)

Returns the value of attribute cpf.



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

def cpf
  @cpf
end