Class: Repor::Aggregators::MaxAggregator
- Inherits:
-
BaseAggregator
- Object
- BaseAggregator
- Repor::Aggregators::MaxAggregator
- Defined in:
- lib/repor/aggregators/max_aggregator.rb
Instance Attribute Summary
Attributes inherited from BaseAggregator
Instance Method Summary collapse
Methods inherited from BaseAggregator
Constructor Details
This class inherits a constructor from Repor::Aggregators::BaseAggregator
Instance Method Details
#aggregation(groups) ⇒ Object
4 5 6 |
# File 'lib/repor/aggregators/max_aggregator.rb', line 4 def aggregation(groups) groups.select("MAX(#{expression}) AS #{sql_value_name}") end |