Class: SirTracksAlot::Reports::Report
- Inherits:
-
Ruport::Controller
- Object
- Ruport::Controller
- SirTracksAlot::Reports::Report
- Defined in:
- lib/sir_tracks_alot/reports/report.rb
Direct Known Subclasses
Defined Under Namespace
Modules: Helpers
Instance Attribute Summary collapse
-
#all ⇒ Object
Returns the value of attribute all.
Class Method Summary collapse
-
.build_rows(filters) ⇒ Object
Accepts either: options: => {:owner => ‘xxx’} options: [=> ‘xxx’].
Instance Method Summary collapse
Instance Attribute Details
#all ⇒ Object
Returns the value of attribute all.
4 5 6 |
# File 'lib/sir_tracks_alot/reports/report.rb', line 4 def all @all end |
Class Method Details
.build_rows(filters) ⇒ Object
Accepts either: options: => {:owner => ‘xxx’} options: [=> ‘xxx’]
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/sir_tracks_alot/reports/report.rb', line 9 def self.build_rows(filters) rows = [] filters = {nil => filters} if filters.kind_of?(Array) filters.each do |title, | rows += SirTracksAlot::Count.rows(, title) end rows end |
Instance Method Details
#setup ⇒ Object
20 21 22 23 24 |
# File 'lib/sir_tracks_alot/reports/report.rb', line 20 def setup self.data = [] .report_class ||= '' .report_title ||= 'Report' end |