Class: LogfileInterval::Aggregator::Sum
- Defined in:
- lib/logfile_interval/aggregator/sum.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
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 |