Class: ActiveWebhook::Queueing::ActiveJobAdapter::SubscriptionJob
- Inherits:
-
ApplicationJob
- Object
- ApplicationJob
- ActiveWebhook::Queueing::ActiveJobAdapter::SubscriptionJob
- Defined in:
- lib/active_webhook/queueing/active_job_adapter.rb
Instance Method Summary collapse
Instance Method Details
#perform(subscription, hook, context) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/active_webhook/queueing/active_job_adapter.rb', line 9 def perform(subscription, hook, context) context.symbolize_keys! hook = Hook.from_h(hook.symbolize_keys) unless hook.nil? ActiveWebhook.queueing_adapter.fulfill_subscription( subscription: subscription, hook: hook, job_id: job_id, **context ) end |