Class: LogfileInterval::Aggregator::Sum

Inherits:
Base
  • Object
show all
Defined in:
lib/logfile_interval/aggregator/sum.rb

Instance Attribute Summary

Attributes inherited from Base

#name

Instance Method Summary collapse

Methods inherited from Base

#initialize, #value, #values

Methods included from Registrar

#aggregator_classes, #all, #exist?, #inherited, #klass, #register_aggregator

Constructor Details

This class inherits a constructor from LogfileInterval::Aggregator::Base

Instance Method Details

#add(value, group_by = nil) ⇒ Object



4
5
6
# File 'lib/logfile_interval/aggregator/sum.rb', line 4

def add(value, group_by = nil)
  @val.add(key(group_by), value)
end