Class: RailsPerformance::Reports::BreakdownReport
- Inherits:
-
BaseReport
- Object
- BaseReport
- RailsPerformance::Reports::BreakdownReport
- Defined in:
- lib/rails_performance/reports/breakdown_report.rb
Instance Attribute Summary
Attributes inherited from BaseReport
Instance Method Summary collapse
Methods inherited from BaseReport
#calculate_data, #collect, #initialize, time_in_app_time_zone
Constructor Details
This class inherits a constructor from RailsPerformance::Reports::BaseReport
Instance Method Details
#data ⇒ Object
9 10 11 12 13 |
# File 'lib/rails_performance/reports/breakdown_report.rb', line 9 def data db.data .collect{|e| e.record_hash} .sort{|a, b| b[sort] <=> a[sort]} end |
#set_defaults ⇒ Object
5 6 7 |
# File 'lib/rails_performance/reports/breakdown_report.rb', line 5 def set_defaults @sort ||= :datetimei end |