zooniverse/Cellect

View on GitHub
lib/cellect/client/node_set.rb

Summary

Maintainability
A
0 mins
Test Coverage
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