Sha256: aba338a6eec8c709338bc4e1e6d6d87054a3078b583e432170aba677be78ab74

Contents?: true

Size: 409 Bytes

Versions: 6

Compression:

Stored size: 409 Bytes

Contents

module SpiffyStoresApp
  class ScripttagsManagerJob < ActiveJob::Base

    queue_as do
      SpiffyStoresApp.configuration.scripttags_manager_queue_name
    end

    def perform(shop_domain:, shop_token:, scripttags:)
      SpiffyStoresAPI::Session.temp(shop_domain, shop_token) do
        manager = ScripttagsManager.new(scripttags, shop_domain)
        manager.create_scripttags
      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/scripttags_manager_job.rb
spiffy_stores_app-8.2.10 lib/spiffy_stores_app/jobs/scripttags_manager_job.rb
spiffy_stores_app-8.2.9 lib/spiffy_stores_app/jobs/scripttags_manager_job.rb
spiffy_stores_app-8.2.8 lib/spiffy_stores_app/jobs/scripttags_manager_job.rb
spiffy_stores_app-8.2.7 lib/spiffy_stores_app/jobs/scripttags_manager_job.rb
spiffy_stores_app-8.2.6 lib/spiffy_stores_app/jobs/scripttags_manager_job.rb