Class: LogfileInterval::Aggregator::Count
- Defined in:
- lib/logfile_interval/aggregator/count.rb
Instance Method Summary collapse
Methods inherited from Base
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/count.rb', line 4 def add(value, group_by = nil) @val.add(key(group_by), 1) end |