class Tsuga::Service::Aggregator::IdSet

Public Class Methods

new() click to toggle source
# File lib/tsuga/service/aggregator.rb, line 158
def initialize
  @data = {}
end

Public Instance Methods

add(item) click to toggle source
# File lib/tsuga/service/aggregator.rb, line 162
def add(item)
  @data[item.id] = item
end
remove(item) click to toggle source
# File lib/tsuga/service/aggregator.rb, line 166
def remove(item)
  @data.delete(item.id)
end
to_a() click to toggle source
# File lib/tsuga/service/aggregator.rb, line 170
def to_a
  @data.values
end