Class: Nfe::Reader::Authorization

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

Overview

Pessoas Autorizadas para obter XML

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.



10
11
12
13
# File 'lib/nfe_reader/authorization.rb', line 10

def initialize(attrs = {})
  @cnpj = attrs[:CNPJ]
  @cpf = attrs[:CPF]
end

Instance Attribute Details

#cnpjObject (readonly)

Returns the value of attribute cnpj.



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

def cnpj
  @cnpj
end

#cpfObject (readonly)

Returns the value of attribute cpf.



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

def cpf
  @cpf
end