class Hyrax::Ingest::Ingester::PreservationEventIngester

Attributes

Public Class Methods

new(config={}) click to toggle source
# File lib/hyrax/ingest/ingester/preservation_event_ingester.rb, line 11
def initialize(config={})
  config[:af_model_class_name] ||= 'Hyrax::Preservation::Event'
  @premis_event_related_object = config.delete(:premis_event_related_object)
  super(config)
end

Public Instance Methods

run!() click to toggle source
# File lib/hyrax/ingest/ingester/preservation_event_ingester.rb, line 17
def run!
  assign_properties!
  af_model.premis_event_related_object = premis_event_related_object
  save_model!
  # return the new instance of the ActiveFedora model
  af_model
end