Class: Decidim::Voca::WebhookNotifierJob

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#event_typeObject (readonly)

Returns the value of attribute event_type.



11
12
13
# File 'app/jobs/decidim/voca/webhook_notifier_job.rb', line 11

def event_type
  @event_type
end

Instance Method Details

#perform(content, event_type, logger = Rails.logger) ⇒ Object



12
13
14
15
16
17
# File 'app/jobs/decidim/voca/webhook_notifier_job.rb', line 12

def perform(content, event_type, logger = Rails.logger)
  @content = content
  @event_type = event_type
  @logger = logger
  notify!
end