Class: PagerTree::Integrations::OutgoingWebhookJob

Inherits:
ApplicationJob
  • Object
show all
Defined in:
app/jobs/pager_tree/integrations/outgoing_webhook_job.rb

Instance Method Summary collapse

Instance Method Details

#perform(*args) ⇒ Object



5
6
7
8
9
10
# File 'app/jobs/pager_tree/integrations/outgoing_webhook_job.rb', line 5

def perform(*args)
  id = args[0]
  method = args[1]
  outgoing_webhook_delivery = OutgoingWebhookDelivery.find(id)
  outgoing_webhook_delivery.send(method, *args[2..])
end