Class: Railswatch::Reports::ResourcesReport::Server
- Inherits:
-
Struct
- Object
- Struct
- Railswatch::Reports::ResourcesReport::Server
- Defined in:
- lib/railswatch/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
6 7 8 |
# File 'lib/railswatch/reports/resources_report.rb', line 6 def key @key end |
#report ⇒ Object
Returns the value of attribute report
6 7 8 |
# File 'lib/railswatch/reports/resources_report.rb', line 6 def report @report end |
Instance Method Details
#charts ⇒ Object
11 12 13 14 15 |
# File 'lib/railswatch/reports/resources_report.rb', line 11 def charts Railswatch.system_monitors.map do |class_name| Widgets.const_get(class_name).new(self) end end |
#name ⇒ Object
7 8 9 |
# File 'lib/railswatch/reports/resources_report.rb', line 7 def name key.split('///').join(', ') end |