Sha256: 6469770aa997968942e218726e341f46d953f69738eb7cf0a3905b0e7c388c27
Contents?: true
Size: 353 Bytes
Versions: 11
Compression:
Stored size: 353 Bytes
Contents
class ActiveFedoraPidBasedJob def queue_name :pid_based end attr_accessor :pid def initialize(pid) self.pid = pid end def object @object ||= ActiveFedora::Base.find(pid) end alias_method :generic_file, :object alias_method :generic_file_id, :pid def run raise RuntimeError, "Define #run in a subclass" end end
Version data entries
11 entries across 11 versions & 2 rubygems