Class: QaServer::MonitorStatusPresenter

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
app/presenters/qa_server/monitor_status_presenter.rb

Instance Method Summary collapse

Constructor Details

#initialize(current_summary:, current_failure_data:, historical_summary_data:, performance_data:) ⇒ MonitorStatusPresenter

Returns a new instance of MonitorStatusPresenter.

Parameters:

  • current_summary (ScenarioRunSummary)

    summary status of the latest run of test scenarios

  • current_data (Array<Hash>)

    current set of failures for the latest test run, if any

  • historical_summary_data (Array<Hash>)

    summary of past failuring runs per authority to drive chart

  • performance_data (Hash<Hash>)

    performance datatable data



11
12
13
14
15
# File 'app/presenters/qa_server/monitor_status_presenter.rb', line 11

def initialize(current_summary:, current_failure_data:, historical_summary_data:, performance_data:)
  @current_status_presenter = QaServer::MonitorStatus::CurrentStatusPresenter.new(parent: self, current_summary: current_summary, current_failure_data: current_failure_data)
  @history_presenter = QaServer::MonitorStatus::HistoryPresenter.new(parent: self, historical_summary_data: historical_summary_data)
  @performance_presenter = QaServer::MonitorStatus::PerformancePresenter.new(parent: self, performance_data: performance_data)
end