Class: Aidp::Harness::StatusDisplay::AlertManager
- Inherits:
-
Object
- Object
- Aidp::Harness::StatusDisplay::AlertManager
- Defined in:
- lib/aidp/harness/status_display.rb
Instance Method Summary collapse
- #active_alerts ⇒ Object
- #clear_alerts ⇒ Object
-
#initialize ⇒ AlertManager
constructor
A new instance of AlertManager.
- #process_alerts(alerts) ⇒ Object
Constructor Details
#initialize ⇒ AlertManager
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_alerts ⇒ Object
847 848 849 |
# File 'lib/aidp/harness/status_display.rb', line 847 def active_alerts @alerts end |
#clear_alerts ⇒ Object
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 |