Class: Hyrax::Ingest::Ingester::FileSetIngester
- Inherits:
-
ActiveFedoraBaseIngester
- Object
- Base
- ActiveFedoraBaseIngester
- Hyrax::Ingest::Ingester::FileSetIngester
- Defined in:
- lib/hyrax/ingest/ingester/file_set_ingester.rb
Instance Attribute Summary collapse
-
#files_config ⇒ Object
readonly
Returns the value of attribute files_config.
-
#preservation_events_config ⇒ Object
readonly
Returns the value of attribute preservation_events_config.
Attributes inherited from ActiveFedoraBaseIngester
#af_model_class_name, #properties_config, #shared_sip, #update_params
Instance Method Summary collapse
-
#initialize(config = {}) ⇒ FileSetIngester
constructor
A new instance of FileSetIngester.
- #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 = {}) ⇒ FileSetIngester
Returns a new instance of FileSetIngester.
10 11 12 13 14 15 |
# File 'lib/hyrax/ingest/ingester/file_set_ingester.rb', line 10 def initialize(config={}) @files_config = config.delete(:Files) || [] @preservation_events_config = config.delete(:PreservationEvents) || [] config[:af_model_class_name] ||= 'FileSet' super(config) end |
Instance Attribute Details
#files_config ⇒ Object (readonly)
Returns the value of attribute files_config.
8 9 10 |
# File 'lib/hyrax/ingest/ingester/file_set_ingester.rb', line 8 def files_config @files_config end |
#preservation_events_config ⇒ Object (readonly)
Returns the value of attribute preservation_events_config.
8 9 10 |
# File 'lib/hyrax/ingest/ingester/file_set_ingester.rb', line 8 def preservation_events_config @preservation_events_config end |
Instance Method Details
#run! ⇒ Object
17 18 19 20 21 22 23 24 25 |
# File 'lib/hyrax/ingest/ingester/file_set_ingester.rb', line 17 def run! assign_properties! save_model! ingest_preservation_events! add_files_to_file_set! # return the new instance of the ActiveFedora model af_model end |