Method: Etcd::Node#initialize

Defined in:
lib/etcd/node.rb

#initialize(opts = {}) ⇒ Node

Returns a new instance of Node.



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

def initialize(opts={})
  check_required(opts)
  @name        = opts[:name]
  @id          = opts[:id]
  @peer_urls   = opts[:peer_urls]
  @client_urls = opts[:client_urls]
  @status = :unknown
end