Sha256: 4411d8c3fd03adb33454888adada62c8bc29d5ef27ec7a0595c3ef9bdf6a99ba

Contents?: true

Size: 325 Bytes

Versions: 11

Compression:

Stored size: 325 Bytes

Contents

module Cellect
  module Client
    class NodeSet
      attr_accessor :nodes

      # Gets the current list of nodes and listens to changes
      def initialize
        self.nodes = Attention.instances
        Attention.on_change do |change, instances|
          self.nodes = instances
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
cellect-client-3.0.2 lib/cellect/client/node_set.rb
cellect-client-3.0.1 lib/cellect/client/node_set.rb
cellect-client-3.0.0 lib/cellect/client/node_set.rb
cellect-client-2.1.1 lib/cellect/client/node_set.rb
cellect-client-2.1.0 lib/cellect/client/node_set.rb
cellect-client-2.0.1 lib/cellect/client/node_set.rb
cellect-client-2.0.0 lib/cellect/client/node_set.rb
cellect-client-2.0.0.beta4 lib/cellect/client/node_set.rb
cellect-client-2.0.0.beta3 lib/cellect/client/node_set.rb
cellect-client-2.0.0.beta2 lib/cellect/client/node_set.rb
cellect-client-2.0.0.beta1 lib/cellect/client/node_set.rb