Sha256: a997e3ea6bbf6622f5dd12e020813c8c9b2c7c8a39c0a99edaa90601e114c646

Contents?: true

Size: 384 Bytes

Versions: 6

Compression:

Stored size: 384 Bytes

Contents

module SpiffyStoresApp
  class WebhooksManagerJob < ActiveJob::Base

    queue_as do
      SpiffyStoresApp.configuration.webhooks_manager_queue_name
    end

    def perform(shop_domain:, shop_token:, webhooks:)
      SpiffyStoresAPI::Session.temp(shop_domain, shop_token) do
        manager = WebhooksManager.new(webhooks)
        manager.create_webhooks
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
spiffy_stores_app-8.2.11 lib/spiffy_stores_app/jobs/webhooks_manager_job.rb
spiffy_stores_app-8.2.10 lib/spiffy_stores_app/jobs/webhooks_manager_job.rb
spiffy_stores_app-8.2.9 lib/spiffy_stores_app/jobs/webhooks_manager_job.rb
spiffy_stores_app-8.2.8 lib/spiffy_stores_app/jobs/webhooks_manager_job.rb
spiffy_stores_app-8.2.7 lib/spiffy_stores_app/jobs/webhooks_manager_job.rb
spiffy_stores_app-8.2.6 lib/spiffy_stores_app/jobs/webhooks_manager_job.rb