Class: DuodealerApp::ScripttagsManagerJob

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

Instance Method Summary collapse

Instance Method Details

#perform(account_domain:, account_token:, scripttags:) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/duodealer_app/jobs/scripttags_manager_job.rb', line 9

def perform(account_domain:, account_token:, scripttags:)
  api_version = DuodealerApp.configuration.api_version
  DuodealerAPI::Session.temp(domain: , token: , api_version: api_version) do
    manager = ScripttagsManager.new(scripttags, )
    manager.create_scripttags
  end
end