Class: Cql::Client::ConnectionHelper::FailedConnection

Inherits:
Object
  • Object
show all
Defined in:
lib/cql/client/connection_helper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error, host, port) ⇒ FailedConnection

Returns a new instance of FailedConnection.



169
170
171
172
173
# File 'lib/cql/client/connection_helper.rb', line 169

def initialize(error, host, port)
  @error = error
  @host = host
  @port = port
end

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error.



167
168
169
# File 'lib/cql/client/connection_helper.rb', line 167

def error
  @error
end

#hostObject (readonly)

Returns the value of attribute host.



167
168
169
# File 'lib/cql/client/connection_helper.rb', line 167

def host
  @host
end

#portObject (readonly)

Returns the value of attribute port.



167
168
169
# File 'lib/cql/client/connection_helper.rb', line 167

def port
  @port
end

Instance Method Details

#connected?Boolean

Returns:

  • (Boolean)


175
176
177
# File 'lib/cql/client/connection_helper.rb', line 175

def connected?
  false
end