Class: BrNfe::Servico::Response::Default

Inherits:
ActiveModelBase show all
Defined in:
lib/br_nfe/servico/response/default.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from ActiveModelBase

#assign_attributes, #default_values

Constructor Details

#initialize(attributes = {}) ⇒ Default

Returns a new instance of Default.



14
15
16
17
18
# File 'lib/br_nfe/servico/response/default.rb', line 14

def initialize(attributes = {})
	self.notas_fiscais  = [] # Para poder utilizar o <<
	self.error_messages = [] # Para poder utilizar o <<
	super
end

Instance Attribute Details

#data_recebimentoObject

Returns the value of attribute data_recebimento.



10
11
12
# File 'lib/br_nfe/servico/response/default.rb', line 10

def data_recebimento
  @data_recebimento
end

#error_messagesObject

Returns the value of attribute error_messages.



6
7
8
# File 'lib/br_nfe/servico/response/default.rb', line 6

def error_messages
  @error_messages
end

#notas_fiscaisObject

Returns the value of attribute notas_fiscais.



7
8
9
# File 'lib/br_nfe/servico/response/default.rb', line 7

def notas_fiscais
  @notas_fiscais
end

#numero_loteObject

Returns the value of attribute numero_lote.



11
12
13
# File 'lib/br_nfe/servico/response/default.rb', line 11

def numero_lote
  @numero_lote
end

#protocoloObject

Returns the value of attribute protocolo.



9
10
11
# File 'lib/br_nfe/servico/response/default.rb', line 9

def protocolo
  @protocolo
end

#successObject

Returns the value of attribute success.



5
6
7
# File 'lib/br_nfe/servico/response/default.rb', line 5

def success
  @success
end

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


28
29
30
# File 'lib/br_nfe/servico/response/default.rb', line 28

def success?
	success
end