Class: Hyrax::Ingest::Ingester::PreservationEventIngester
- Inherits:
-
ActiveFedoraBaseIngester
- Object
- Base
- ActiveFedoraBaseIngester
- Hyrax::Ingest::Ingester::PreservationEventIngester
- Defined in:
- lib/hyrax/ingest/ingester/preservation_event_ingester.rb
Instance Attribute Summary collapse
-
#premis_event_related_object ⇒ Object
readonly
Returns the value of attribute premis_event_related_object.
Attributes inherited from ActiveFedoraBaseIngester
#af_model_class_name, #properties_config, #shared_sip, #update_params
Instance Method Summary collapse
-
#initialize(config = {}) ⇒ PreservationEventIngester
constructor
A new instance of PreservationEventIngester.
- #run! ⇒ Object
Methods inherited from ActiveFedoraBaseIngester
Methods included from HasDepositor
Methods included from HasLogger
Methods included from HasReport
Methods included from HasIteration
Methods included from HasSharedSIP
Methods included from HasSIP
Constructor Details
#initialize(config = {}) ⇒ PreservationEventIngester
Returns a new instance of PreservationEventIngester.
11 12 13 14 15 |
# 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 |
Instance Attribute Details
#premis_event_related_object ⇒ Object (readonly)
Returns the value of attribute premis_event_related_object.
9 10 11 |
# File 'lib/hyrax/ingest/ingester/preservation_event_ingester.rb', line 9 def @premis_event_related_object end |
Instance Method Details
#run! ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/hyrax/ingest/ingester/preservation_event_ingester.rb', line 17 def run! assign_properties! af_model. = save_model! # return the new instance of the ActiveFedora model af_model end |