Class: Cellect::Client::NodeSet

Inherits:
NodeSet
  • Object
show all
Defined in:
lib/cellect/client/node_set.rb

Constant Summary

Constants inherited from NodeSet

NodeSet::ConnectionError

Instance Attribute Summary collapse

Attributes inherited from NodeSet

#state, #zk

Instance Method Summary collapse

Methods inherited from NodeSet

#initialize_zk, #ready?

Constructor Details

#initialize(zk_url = nil) ⇒ NodeSet

Sets up an empty node set



9
10
11
12
# File 'lib/cellect/client/node_set.rb', line 9

def initialize(zk_url = nil)
  self.nodes = { }
  super
end

Instance Attribute Details

#nodesObject

Returns the value of attribute nodes.



6
7
8
# File 'lib/cellect/client/node_set.rb', line 6

def nodes
  @nodes
end