Class: EepClient::ErrorResponse

Inherits:
Response
  • Object
show all
Defined in:
lib/eep_client/response.rb

Constant Summary

Constants inherited from Response

Response::ID, Response::MESSAGE, Response::MESSAGES, Response::OK, Response::STATUS

Instance Attribute Summary collapse

Attributes inherited from Response

#status

Instance Method Summary collapse

Methods inherited from Response

#initialize, mock_clear_ok, mock_event_ok, new_instance

Constructor Details

This class inherits a constructor from EepClient::Response

Instance Attribute Details

#messagesObject (readonly)

Returns the value of attribute messages.



44
45
46
# File 'lib/eep_client/response.rb', line 44

def messages
  @messages
end

Instance Method Details

#to_sObject



45
46
47
# File 'lib/eep_client/response.rb', line 45

def to_s
  "#{self.class.name} status: #@status, err_messages: #{@messages.join(', ')}"
end