Class: EepClient::OkResponse

Inherits:
Response 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

#idObject (readonly)

Returns the value of attribute id.



36
37
38
# File 'lib/eep_client/response.rb', line 36

def id
  @id
end

#messageObject (readonly)

Returns the value of attribute message.



36
37
38
# File 'lib/eep_client/response.rb', line 36

def message
  @message
end

Instance Method Details

#to_sObject



38
39
40
# File 'lib/eep_client/response.rb', line 38

def to_s
  "#{self.class.name} status: #@status, message: #@message, id: #@id"
end