Class: ShopifyApp::ScripttagsManagerJob

Inherits:
ActiveJob::Base
  • Object
show all
Defined in:
lib/shopify_app/jobs/scripttags_manager_job.rb

Instance Method Summary collapse

Instance Method Details

#perform(shop_domain:, shop_token:, scripttags:) ⇒ Object


8
9
10
11
12
13
# File 'lib/shopify_app/jobs/scripttags_manager_job.rb', line 8

def perform(shop_domain:, shop_token:, scripttags:)
  ShopifyAPI::Session.temp(shop_domain, shop_token) do
    manager = ScripttagsManager.new(scripttags, shop_domain)
    manager.create_scripttags
  end
end