Class: IiifManifestCachePrewarmJob

Inherits:
Hyrax::ApplicationJob show all
Defined in:
app/jobs/iiif_manifest_cache_prewarm_job.rb

Instance Method Summary collapse

Instance Method Details

#perform(work) ⇒ Object

Parameters:

  • work (ActiveFedora::Base)

6
7
8
9
# File 'app/jobs/iiif_manifest_cache_prewarm_job.rb', line 6

def perform(work)
  presenter = Hyrax::IiifManifestPresenter.new(work)
  manifest_builder.manifest_for(presenter: presenter)
end