Class: Katello::UINotifications::TaskNotification

Inherits:
AbstractNotification show all
Defined in:
app/services/katello/ui_notifications/task_notification.rb

Instance Method Summary collapse

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(options)
  @subject = options[:subject]
  @task = options[:task]
  fail(Foreman::Exception, 'must provide notification subject') if @subject.nil?
  fail(Foreman::Exception, 'must provide related task') if @task.nil?
end