Class: SmoothOperator::RemoteCall::Errors::ConnectionFailed

Inherits:
Base
  • Object
show all
Defined in:
lib/smooth_operator/remote_call/errors/connection_failed.rb

Instance Attribute Summary

Attributes inherited from Base

#body, #headers, #http_status, #object, #response

Instance Method Summary collapse

Methods inherited from Base

#client_error?, #cookie, #data, #error?, #not_found?, #not_processed?, #ok?, #parsed_response, #server_error?, #status, #timeout?

Constructor Details

#initialize(response) ⇒ ConnectionFailed

Returns a new instance of ConnectionFailed.



7
8
9
10
# File 'lib/smooth_operator/remote_call/errors/connection_failed.rb', line 7

def initialize(response)
  super
  @http_status = 0
end

Instance Method Details

#connection_failed?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/smooth_operator/remote_call/errors/connection_failed.rb', line 12

def connection_failed?
  true
end