Class: Timet::ApplicationHelper::ReportExporter
- Inherits:
-
Object
- Object
- Timet::ApplicationHelper::ReportExporter
- Defined in:
- lib/timet/application_helper.rb
Overview
Note:
This class is responsible for exporting reports to CSV and iCalendar formats.
Class Method Summary collapse
-
.export_csv_report(report, options) ⇒ void
Exports the report to a CSV file if the ‘csv` option is provided.
-
.export_icalendar_report(report, options) ⇒ void
Exports the report to an iCalendar file if the ‘ics` option is provided.
Class Method Details
.export_csv_report(report, options) ⇒ void
This method returns an undefined value.
Exports the report to a CSV file if the ‘csv` option is provided.
217 218 219 |
# File 'lib/timet/application_helper.rb', line 217 def self.export_csv_report(report, ) report.export_csv if [:csv] end |
.export_icalendar_report(report, options) ⇒ void
This method returns an undefined value.
Exports the report to an iCalendar file if the ‘ics` option is provided.
227 228 229 |
# File 'lib/timet/application_helper.rb', line 227 def self.export_icalendar_report(report, ) report.export_icalendar if [:ics] end |