Class: ReportsKit::Reports::Data::AddTableAggregations
- Inherits:
-
Object
- Object
- ReportsKit::Reports::Data::AddTableAggregations
- Defined in:
- lib/reports_kit/reports/data/add_table_aggregations.rb
Constant Summary collapse
- VALID_AGGREGATION_OPERATORS =
[:sum]
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#report_options ⇒ Object
Returns the value of attribute report_options.
Instance Method Summary collapse
-
#initialize(data, report_options:) ⇒ AddTableAggregations
constructor
A new instance of AddTableAggregations.
- #perform ⇒ Object
Constructor Details
#initialize(data, report_options:) ⇒ AddTableAggregations
Returns a new instance of AddTableAggregations.
9 10 11 12 |
# File 'lib/reports_kit/reports/data/add_table_aggregations.rb', line 9 def initialize(data, report_options:) self.data = data self. = || {} end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
5 6 7 |
# File 'lib/reports_kit/reports/data/add_table_aggregations.rb', line 5 def data @data end |
#report_options ⇒ Object
Returns the value of attribute report_options.
5 6 7 |
# File 'lib/reports_kit/reports/data/add_table_aggregations.rb', line 5 def @report_options end |
Instance Method Details
#perform ⇒ Object
14 15 16 |
# File 'lib/reports_kit/reports/data/add_table_aggregations.rb', line 14 def perform data_with_aggregations end |