Class: CharacterizeJob

Inherits:
ActiveFedoraIdBasedJob show all
Defined in:
app/jobs/characterize_job.rb

Instance Attribute Summary

Attributes inherited from ActiveFedoraIdBasedJob

#id

Instance Method Summary collapse

Methods inherited from ActiveFedoraIdBasedJob

#object

Instance Method Details

#perform(id, filename) ⇒ Object

Parameters:

  • id (String)
  • filename (String)

    a local path for the file to characterize. By using this, we don’t have to pull a copy out of fedora.



6
7
8
9
10
11
# File 'app/jobs/characterize_job.rb', line 6

def perform(id, filename)
  @id = id
  Hydra::Works::CharacterizationService.run(file_set, filename)
  file_set.save
  CreateDerivativesJob.perform_later(file_set.id, filename)
end