Class: BrNfe::Product::Response::NfeStatusServico

Inherits:
Base show all
Defined in:
lib/br_nfe/product/response/nfe_status_servico.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#app_version, #environment, #processed_at, #processing_status_code, #processing_status_motive, #protocol, #request_message_error, #request_status, #soap_xml

Attributes inherited from ActiveModelBase

#reference

Instance Method Summary collapse

Methods inherited from Base

#processed_successfully?, #processing_status

Methods inherited from ActiveModelBase

#assign_attributes, #default_values, #initialize

Constructor Details

This class inherits a constructor from BrNfe::ActiveModelBase

Instance Attribute Details

#average_timeObject

Returns the value of attribute average_time.



9
10
11
# File 'lib/br_nfe/product/response/nfe_status_servico.rb', line 9

def average_time
  @average_time
end

#observationObject

Returns the value of attribute observation.



12
13
14
# File 'lib/br_nfe/product/response/nfe_status_servico.rb', line 12

def observation
  @observation
end

#return_previsionObject

Returns the value of attribute return_prevision.



15
16
17
# File 'lib/br_nfe/product/response/nfe_status_servico.rb', line 15

def return_prevision
  @return_prevision
end

#ufObject

Returns the value of attribute uf.



6
7
8
# File 'lib/br_nfe/product/response/nfe_status_servico.rb', line 6

def uf
  @uf
end

Instance Method Details

#statusObject



21
22
23
24
25
26
27
# File 'lib/br_nfe/product/response/nfe_status_servico.rb', line 21

def status
	if processing_status_code == '107'
		:online
	else
		:offline
	end
end