Class: Aidp::Harness::StatusDisplay::AlertManager

Inherits:
Object
  • Object
show all
Defined in:
lib/aidp/harness/status_display.rb

Instance Method Summary collapse

Constructor Details

#initializeAlertManager

Returns a new instance of AlertManager.



835
836
837
838
# File 'lib/aidp/harness/status_display.rb', line 835

def initialize
  @alerts = []
  @alert_history = []
end

Instance Method Details

#active_alertsObject



847
848
849
# File 'lib/aidp/harness/status_display.rb', line 847

def active_alerts
  @alerts
end

#clear_alertsObject



851
852
853
# File 'lib/aidp/harness/status_display.rb', line 851

def clear_alerts
  @alerts.clear
end

#process_alerts(alerts) ⇒ Object



840
841
842
843
844
845
# File 'lib/aidp/harness/status_display.rb', line 840

def process_alerts(alerts)
  alerts.each do |alert|
    @alerts << alert
    @alert_history << alert
  end
end