Class: Railswatch::Widgets::RequestsTable

Inherits:
Table
  • Object
show all
Defined in:
lib/railswatch/widgets/requests_table.rb

Instance Attribute Summary

Attributes inherited from Base

#datasource

Instance Method Summary collapse

Methods inherited from Table

#auto_update_interval, #show_export?, #table_classes, #table_id, #to_partial_path

Methods inherited from Base

#initialize, #to_partial_path

Constructor Details

This class inherits a constructor from Railswatch::Widgets::Base

Instance Method Details

#content_partial_pathObject



22
23
24
# File 'lib/railswatch/widgets/requests_table.rb', line 22

def content_partial_path
  'railswatch/railswatch/requests_table_content'
end

#dataObject



10
11
12
13
14
15
16
# File 'lib/railswatch/widgets/requests_table.rb', line 10

def data
  @data ||= Railswatch::Reports::RequestsReport.new(
    datasource.db,
    group: :controller_action_format,
    sort: :count
  ).data
end

#empty_messageObject



18
19
20
# File 'lib/railswatch/widgets/requests_table.rb', line 18

def empty_message
  'No requests recorded yet.'
end

#subtitleObject



6
7
8
# File 'lib/railswatch/widgets/requests_table.rb', line 6

def subtitle
  'Requests Analysis'
end