Sha256: 668a95192cc59fda9f52db3053539b773758efe14680ab0862d94e4cebed38d6

Contents?: true

Size: 241 Bytes

Versions: 3

Compression:

Stored size: 241 Bytes

Contents

module DbClustering
  module Models
    class Cluster

      attr_accessor :points

      def initialize
        @points = []
      end

      def add(point)
        @points << point
        point.cluster = self
      end

    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
db_clustering-0.1.3 lib/models/cluster.rb
db_clustering-0.1.2 lib/models/cluster.rb
db_clustering-0.1.1 lib/models/cluster.rb