class ActiveWebhook::Queueing::DelayedJobAdapter

Protected Instance Methods

promise_subscription(subscription:, hook:) click to toggle source
# File lib/active_webhook/queueing/delayed_job_adapter.rb, line 10
def promise_subscription(subscription:, hook:)
  ActiveWebhook.queueing_adapter.fulfill_subscription(
    subscription: subscription,
    hook: hook,
    # NOTE: not implemented yet;
    # SEE: https://stackoverflow.com/questions/21590798/referencing-delayed-job-job-id-from-within-the-job-task
    # job_id: ???
    **context
  )
end
promise_topic() click to toggle source
# File lib/active_webhook/queueing/delayed_job_adapter.rb, line 22
def promise_topic
  fulfill_topic
end