Class: RailsPerformance::Reports::ResourcesReport::Server
- Inherits:
-
Struct
- Object
- Struct
- RailsPerformance::Reports::ResourcesReport::Server
- Defined in:
- lib/rails_performance/reports/resources_report.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
-
#report ⇒ Object
Returns the value of attribute report.
Instance Method Summary collapse
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key
4 5 6 |
# File 'lib/rails_performance/reports/resources_report.rb', line 4 def key @key end |
#report ⇒ Object
Returns the value of attribute report
4 5 6 |
# File 'lib/rails_performance/reports/resources_report.rb', line 4 def report @report end |
Instance Method Details
#charts ⇒ Object
9 10 11 12 13 |
# File 'lib/rails_performance/reports/resources_report.rb', line 9 def charts RailsPerformance.system_monitors.map do |class_name| SystemMonitor.const_get(class_name).new(self) end end |
#name ⇒ Object
5 6 7 |
# File 'lib/rails_performance/reports/resources_report.rb', line 5 def name key.split("///").join(", ") end |