class LogfileInterval::Aggregator::Appender
Public Class Methods
new(options = {})
click to toggle source
Calls superclass method
# File lib/logfile_interval/aggregator/appender.rb, line 4 def initialize(options = {}) super(options) @val = {} end
Public Instance Methods
add(value, group_by = nil)
click to toggle source
# File lib/logfile_interval/aggregator/appender.rb, line 9 def add(value, group_by = nil) @val[key(group_by)] ||= Set.new @val[key(group_by)].add(value) @size.increment(key(group_by)) end