Class: Opticon::Failure::ResponseCodeTestFailure

Inherits:
Base
  • Object
show all
Defined in:
lib/opticon/failure.rb

Instance Attribute Summary

Attributes inherited from Base

#condition, #exception, #response, #uri

Instance Method Summary collapse

Methods inherited from Base

#initialize, #to_s

Constructor Details

This class inherits a constructor from Opticon::Failure::Base

Instance Method Details

#failure_messageObject



25
26
27
# File 'lib/opticon/failure.rb', line 25

def failure_message
  "The service did not respond as expected; expected response code was #{condition.inspect} but got #{response.code.inspect} (#{response.message.inspect})"
end