Class: ProjectWebHookWorker

Inherits:
Object
  • Object
show all
Includes:
Sidekiq::Worker
Defined in:
app/workers/project_web_hook_worker.rb

Instance Method Summary collapse

Instance Method Details

#perform(hook_id, data, hook_name) ⇒ Object


6
7
8
9
# File 'app/workers/project_web_hook_worker.rb', line 6

def perform(hook_id, data, hook_name)
  data = data.with_indifferent_access
  WebHook.find(hook_id).execute(data, hook_name)
end