Class: LogfileInterval::Aggregator::NumLines
- Defined in:
- lib/logfile_interval/aggregator/num_lines.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_value = nil) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/logfile_interval/aggregator/num_lines.rb', line 4 def add(value, group_by_value = nil) if group_by_value @val.increment_subkey(:all, key(group_by_value)) else @val.increment(:all) end end |