Sha256: f1875b956065b8d661e7432defe5688ea2359c805cd4ad446552df3f9b2c0060

Contents?: true

Size: 361 Bytes

Versions: 7

Compression:

Stored size: 361 Bytes

Contents

# frozen_string_literal: true

class IiifManifestCachePrewarmJob < Hyrax::ApplicationJob
  ##
  # @param work [ActiveFedora::Base]
  def perform(work)
    presenter = Hyrax::IiifManifestPresenter.new(work)
    manifest_builder.manifest_for(presenter: presenter)
  end

  private

    def manifest_builder
      Hyrax::CachingIiifManifestBuilder.new
    end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
hyrax-2.9.6 app/jobs/iiif_manifest_cache_prewarm_job.rb
hyrax-2.9.5 app/jobs/iiif_manifest_cache_prewarm_job.rb
hyrax-2.9.4 app/jobs/iiif_manifest_cache_prewarm_job.rb
hyrax-2.9.3 app/jobs/iiif_manifest_cache_prewarm_job.rb
hyrax-2.9.2 app/jobs/iiif_manifest_cache_prewarm_job.rb
hyrax-2.9.1 app/jobs/iiif_manifest_cache_prewarm_job.rb
hyrax-2.9.0 app/jobs/iiif_manifest_cache_prewarm_job.rb