Class: RailsPerformance::Reports::ResourcesReport::Server

Inherits:
Struct
  • Object
show all
Defined in:
lib/rails_performance/reports/resources_report.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#keyObject

Returns the value of attribute key

Returns:

  • (Object)

    the current value of key



4
5
6
# File 'lib/rails_performance/reports/resources_report.rb', line 4

def key
  @key
end

#reportObject

Returns the value of attribute report

Returns:

  • (Object)

    the current value of report



4
5
6
# File 'lib/rails_performance/reports/resources_report.rb', line 4

def report
  @report
end

Instance Method Details

#chartsObject



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

#nameObject



5
6
7
# File 'lib/rails_performance/reports/resources_report.rb', line 5

def name
  key.split("///").join(", ")
end