Class: Saulabs::Reportable::CumulatedReport

Inherits:
Report
  • Object
show all
Defined in:
lib/saulabs/reportable/cumulated_report.rb

Overview

A special report class that cumulates all data (see Report)

Examples:

Cumulated reports as opposed to regular reports


[[<DateTime today>, 1], [<DateTime yesterday>, 2], [<DateTime two days ago>, 4], etc.] # result of a regular report 
[[<DateTime today>, 7], [<DateTime yesterday>, 6], [<DateTime two days ago>, 4], etc.] # result of a cumulated report for the same dataset

Instance Attribute Summary

Attributes inherited from Report

#aggregation, #date_column, #klass, #name, #options, #value_column

Instance Method Summary collapse

Methods inherited from Report

#initialize

Constructor Details

This class inherits a constructor from Saulabs::Reportable::Report

Instance Method Details

#run(options = {}) ⇒ Object

Runs the report (see Report#run)



18
19
20
# File 'lib/saulabs/reportable/cumulated_report.rb', line 18

def run(options = {})
  cumulate(super, options_for_run(options))
end