Class: Hyrax::Ingest::Ingester::ActiveFedoraBaseIngester
- Includes:
- Interloper
- Defined in:
- lib/hyrax/ingest/ingester/active_fedora_base_ingester.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#af_model_class_name ⇒ Object
readonly
Returns the value of attribute af_model_class_name.
-
#properties_config ⇒ Object
readonly
Returns the value of attribute properties_config.
-
#shared_sip ⇒ Object
readonly
Returns the value of attribute shared_sip.
-
#update_params ⇒ Object
readonly
Returns the value of attribute update_params.
Instance Method Summary collapse
- #af_model ⇒ Object
-
#initialize(config = {}) ⇒ ActiveFedoraBaseIngester
constructor
A new instance of ActiveFedoraBaseIngester.
- #run! ⇒ Object
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 = {}) ⇒ ActiveFedoraBaseIngester
Returns a new instance of ActiveFedoraBaseIngester.
28 29 30 31 32 33 34 |
# File 'lib/hyrax/ingest/ingester/active_fedora_base_ingester.rb', line 28 def initialize(config={}) raise ArgumentError, "Option :af_model_class_name is required" unless config.key?(:af_model_class_name) @af_model_class_name = config.delete(:af_model_class_name).to_s @properties_config = config.delete(:properties) || [] @update_params = config.delete(:update) super(config) end |
Instance Attribute Details
#af_model_class_name ⇒ Object (readonly)
Returns the value of attribute af_model_class_name.
14 15 16 |
# File 'lib/hyrax/ingest/ingester/active_fedora_base_ingester.rb', line 14 def af_model_class_name @af_model_class_name end |
#properties_config ⇒ Object (readonly)
Returns the value of attribute properties_config.
14 15 16 |
# File 'lib/hyrax/ingest/ingester/active_fedora_base_ingester.rb', line 14 def properties_config @properties_config end |
#shared_sip ⇒ Object (readonly)
Returns the value of attribute shared_sip.
14 15 16 |
# File 'lib/hyrax/ingest/ingester/active_fedora_base_ingester.rb', line 14 def shared_sip @shared_sip end |
#update_params ⇒ Object (readonly)
Returns the value of attribute update_params.
14 15 16 |
# File 'lib/hyrax/ingest/ingester/active_fedora_base_ingester.rb', line 14 def update_params @update_params end |
Instance Method Details
#af_model ⇒ Object
41 42 43 |
# File 'lib/hyrax/ingest/ingester/active_fedora_base_ingester.rb', line 41 def af_model @af_model ||= new_or_existing_af_model end |
#run! ⇒ Object
36 37 38 39 |
# File 'lib/hyrax/ingest/ingester/active_fedora_base_ingester.rb', line 36 def run! assign_properties! save_model! end |