Class: Katello::UINotifications::TaskNotification
- Inherits:
-
AbstractNotification
- Object
- UINotifications::Base
- AbstractNotification
- Katello::UINotifications::TaskNotification
- Defined in:
- app/services/katello/ui_notifications/task_notification.rb
Direct Known Subclasses
Subscriptions::ManifestDeleteError, Subscriptions::ManifestImportError, Subscriptions::ManifestRefreshError, Subscriptions::SCADisableError, Subscriptions::SCAEnableError
Instance Method Summary collapse
-
#initialize(options) ⇒ TaskNotification
constructor
A new instance of TaskNotification.
Constructor Details
#initialize(options) ⇒ TaskNotification
Returns a new instance of TaskNotification.
4 5 6 7 8 9 |
# File 'app/services/katello/ui_notifications/task_notification.rb', line 4 def initialize() @subject = [:subject] @task = [:task] fail(Foreman::Exception, 'must provide notification subject') if @subject.nil? fail(Foreman::Exception, 'must provide related task') if @task.nil? end |