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.



146
147
148
149
150
# File 'lib/cql/client/connection_helper.rb', line 146

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

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error.



144
145
146
# File 'lib/cql/client/connection_helper.rb', line 144

def error
  @error
end

#hostObject (readonly)

Returns the value of attribute host.



144
145
146
# File 'lib/cql/client/connection_helper.rb', line 144

def host
  @host
end

#portObject (readonly)

Returns the value of attribute port.



144
145
146
# File 'lib/cql/client/connection_helper.rb', line 144

def port
  @port
end

Instance Method Details

#connected?Boolean

Returns:

  • (Boolean)


152
153
154
# File 'lib/cql/client/connection_helper.rb', line 152

def connected?
  false
end