lib/models/cluster.rb in db_clustering-0.1.3 vs lib/models/cluster.rb in db_clustering-0.1.4

- old
+ new

@@ -1,12 +1,13 @@ module DbClustering module Models class Cluster - attr_accessor :points + attr_accessor :points, :id def initialize @points = [] + @id = SecureRandom.urlsafe_base64(3, false) end def add(point) @points << point point.cluster = self