class Cql::Client::PendingConnection

@private

Attributes

authentication_class[R]
connection[R]
host[R]

Public Class Methods

new(host, connection=nil, authentication_class=nil) click to toggle source
# File lib/cql/client/connector.rb, line 214
def initialize(host, connection=nil, authentication_class=nil)
  @host = host
  @connection = connection
  @authentication_class = authentication_class
  @request_runner = RequestRunner.new
end

Public Instance Methods

[](key) click to toggle source
# File lib/cql/client/connector.rb, line 229
def [](key)
  @connection[key]
end
[]=(key, value) click to toggle source
# File lib/cql/client/connector.rb, line 233
def []=(key, value)
  @connection[key] = value
end
execute(request, &block) click to toggle source
# File lib/cql/client/connector.rb, line 237
def execute(request, &block)
  @request_runner.execute(@connection, request, nil, nil, &block)
end
with_authentication_class(authentication_class) click to toggle source
# File lib/cql/client/connector.rb, line 225
def with_authentication_class(authentication_class)
  self.class.new(host, @connection, authentication_class)
end
with_connection(connection) click to toggle source
# File lib/cql/client/connector.rb, line 221
def with_connection(connection)
  self.class.new(host, connection, @authentication_class)
end