Sha256: 3a0f8ee188050435c6cd23000e6e9866ec55c97d660bb70c225077d876488c71

Contents?: true

Size: 329 Bytes

Versions: 17

Compression:

Stored size: 329 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

17 entries across 17 versions & 1 rubygems

Version Path
disco_app-0.16.1.pre.sidekiq.pre.6.pre.release app/jobs/disco_app/concerns/synchronise_resources_job.rb
disco_app-0.13.3 app/jobs/disco_app/concerns/synchronise_resources_job.rb
disco_app-0.13.4 app/jobs/disco_app/concerns/synchronise_resources_job.rb
disco_app-0.13.5 app/jobs/disco_app/concerns/synchronise_resources_job.rb
disco_app-0.13.6 app/jobs/disco_app/concerns/synchronise_resources_job.rb
disco_app-0.13.7 app/jobs/disco_app/concerns/synchronise_resources_job.rb
disco_app-0.13.8 app/jobs/disco_app/concerns/synchronise_resources_job.rb
disco_app-0.14.1 app/jobs/disco_app/concerns/synchronise_resources_job.rb
disco_app-0.14.2 app/jobs/disco_app/concerns/synchronise_resources_job.rb
disco_app-0.15.0 app/jobs/disco_app/concerns/synchronise_resources_job.rb
disco_app-0.16.0 app/jobs/disco_app/concerns/synchronise_resources_job.rb
disco_app-0.14.4 app/jobs/disco_app/concerns/synchronise_resources_job.rb
disco_app-0.14.3 app/jobs/disco_app/concerns/synchronise_resources_job.rb
disco_app-0.16.1 app/jobs/disco_app/concerns/synchronise_resources_job.rb
disco_app-0.15.2 app/jobs/disco_app/concerns/synchronise_resources_job.rb
disco_app-0.14.0 app/jobs/disco_app/concerns/synchronise_resources_job.rb
disco_app-0.13.6.pre.puma.pre.3 app/jobs/disco_app/concerns/synchronise_resources_job.rb