Class: Decidim::NotificationGeneratorForRecipientJob

Inherits:
ApplicationJob
  • Object
show all
Defined in:
app/jobs/decidim/notification_generator_for_recipient_job.rb

Instance Method Summary collapse

Instance Method Details

#perform(event, event_class_name, resource, recipient_id, extra) ⇒ Object



7
8
9
10
11
12
# File 'app/jobs/decidim/notification_generator_for_recipient_job.rb', line 7

def perform(event, event_class_name, resource, recipient_id, extra)
  event_class = event_class_name.constantize
  NotificationGeneratorForRecipient
    .new(event, event_class, resource, recipient_id, extra)
    .generate
end