Class: DuodealerApp::WebhooksManagerJob
- Inherits:
-
ActiveJob::Base
- Object
- ActiveJob::Base
- DuodealerApp::WebhooksManagerJob
- Defined in:
- lib/duodealer_app/jobs/webhooks_manager_job.rb
Instance Method Summary collapse
Instance Method Details
#perform(account_domain:, account_token:, webhooks:) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/duodealer_app/jobs/webhooks_manager_job.rb', line 9 def perform(account_domain:, account_token:, webhooks:) api_version = DuodealerApp.configuration.api_version DuodealerAPI::Session.temp(domain: account_domain, token: account_token, api_version: api_version) do manager = WebhooksManager.new(webhooks) manager.create_webhooks end end |