Method: Etcdv3::Connection#initialize

Defined in:
lib/etcdv3/connection.rb

#initialize(url, timeout, namespace, metadata = {}) ⇒ Connection

Returns a new instance of Connection.



21
22
23
24
25
26
27
28
# File 'lib/etcdv3/connection.rb', line 21

def initialize(url, timeout, namespace, ={})
  @endpoint = URI(url)
  @hostname = "#{@endpoint.hostname}:#{@endpoint.port}"
  @namespace = namespace
  @credentials = resolve_credentials
  @timeout = timeout
  @handlers = handler_map()
end