Class: ShopifyApp::WebhooksManagerJob

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

Instance Method Summary collapse

Instance Method Details

#perform(params = {}) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/shopify_app/webhooks_manager_job.rb', line 3

def perform(params = {})
  shop_name = params.fetch(:shop_name)
  token = params.fetch(:token)

  manager = WebhooksManager.new(shop_name, token)
  manager.create_webhooks
end