Sha256: 18eb66a90e4e17ac3f0b3e1425fa16fe67de1d656d438db8c7f0f6d15a2a79eb

Contents?: true

Size: 328 Bytes

Versions: 22

Compression:

Stored size: 328 Bytes

Contents

module DiscoApp::Concerns::SynchroniseResourcesJob
  extend ActiveSupport::Concern

  def perform(shop, class_name, params)
    klass = class_name.constantize

    klass::SHOPIFY_API_CLASS.find(:all, params: params).map do |shopify_resource|
      klass.synchronise(@shop, shopify_resource.serializable_hash)
    end
  end

end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
disco_app-0.9.7 app/jobs/disco_app/concerns/synchronise_resources_job.rb
disco_app-0.9.8 app/jobs/disco_app/concerns/synchronise_resources_job.rb
disco_app-0.9.9 app/jobs/disco_app/concerns/synchronise_resources_job.rb
disco_app-0.9.10 app/jobs/disco_app/concerns/synchronise_resources_job.rb
disco_app-0.9.11 app/jobs/disco_app/concerns/synchronise_resources_job.rb
disco_app-0.10.0 app/jobs/disco_app/concerns/synchronise_resources_job.rb
disco_app-0.10.1 app/jobs/disco_app/concerns/synchronise_resources_job.rb
disco_app-0.10.2 app/jobs/disco_app/concerns/synchronise_resources_job.rb
disco_app-0.10.3 app/jobs/disco_app/concerns/synchronise_resources_job.rb
disco_app-0.10.4 app/jobs/disco_app/concerns/synchronise_resources_job.rb
disco_app-0.10.5 app/jobs/disco_app/concerns/synchronise_resources_job.rb
disco_app-0.11.0 app/jobs/disco_app/concerns/synchronise_resources_job.rb
disco_app-0.11.1 app/jobs/disco_app/concerns/synchronise_resources_job.rb
disco_app-0.12.0 app/jobs/disco_app/concerns/synchronise_resources_job.rb
disco_app-0.12.1 app/jobs/disco_app/concerns/synchronise_resources_job.rb
disco_app-0.12.5 app/jobs/disco_app/concerns/synchronise_resources_job.rb
disco_app-0.12.6 app/jobs/disco_app/concerns/synchronise_resources_job.rb
disco_app-0.12.7 app/jobs/disco_app/concerns/synchronise_resources_job.rb
disco_app-0.13.0 app/jobs/disco_app/concerns/synchronise_resources_job.rb
disco_app-0.13.1 app/jobs/disco_app/concerns/synchronise_resources_job.rb