Class: Railswatch::Reports::ResourcesReport::Server

Inherits:
Struct
  • Object
show all
Defined in:
lib/railswatch/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



6
7
8
# File 'lib/railswatch/reports/resources_report.rb', line 6

def key
  @key
end

#reportObject

Returns the value of attribute report

Returns:

  • (Object)

    the current value of report



6
7
8
# File 'lib/railswatch/reports/resources_report.rb', line 6

def report
  @report
end

Instance Method Details

#chartsObject



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

#nameObject



7
8
9
# File 'lib/railswatch/reports/resources_report.rb', line 7

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