Class: RestServiceClient::ResponseWithError

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

Instance Attribute Summary collapse

Attributes inherited from Response

#body, #headers, #result, #status

Instance Method Summary collapse

Constructor Details

#initialize(status, headers, body, result, message) ⇒ ResponseWithError

Returns a new instance of ResponseWithError.



171
172
173
174
# File 'lib/restserviceclient.rb', line 171

def initialize(status, headers, body, result, message)
  super(status, headers, body, result)
  @message = message
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



170
171
172
# File 'lib/restserviceclient.rb', line 170

def message
  @message
end