Class: Ddr::IngestTools::DdrRdrMigrator::FilePathAdder
- Inherits:
-
Object
- Object
- Ddr::IngestTools::DdrRdrMigrator::FilePathAdder
- Defined in:
- lib/ddr/ingesttools/ddr_rdr_migrator/file_path_adder.rb
Instance Attribute Summary collapse
-
#files ⇒ Object
readonly
Returns the value of attribute files.
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
-
#manifest ⇒ Object
readonly
Returns the value of attribute manifest.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(files:, logger: nil, manifest:) ⇒ FilePathAdder
constructor
A new instance of FilePathAdder.
Constructor Details
#initialize(files:, logger: nil, manifest:) ⇒ FilePathAdder
Returns a new instance of FilePathAdder.
6 7 8 9 10 |
# File 'lib/ddr/ingesttools/ddr_rdr_migrator/file_path_adder.rb', line 6 def initialize(files:, logger: nil, manifest:) @files = files @logger = logger || Logger.new(STDOUT) @manifest = manifest end |
Instance Attribute Details
#files ⇒ Object (readonly)
Returns the value of attribute files.
4 5 6 |
# File 'lib/ddr/ingesttools/ddr_rdr_migrator/file_path_adder.rb', line 4 def files @files end |
#logger ⇒ Object (readonly)
Returns the value of attribute logger.
4 5 6 |
# File 'lib/ddr/ingesttools/ddr_rdr_migrator/file_path_adder.rb', line 4 def logger @logger end |
#manifest ⇒ Object (readonly)
Returns the value of attribute manifest.
4 5 6 |
# File 'lib/ddr/ingesttools/ddr_rdr_migrator/file_path_adder.rb', line 4 def manifest @manifest end |
Instance Method Details
#call ⇒ Object
12 13 14 15 16 |
# File 'lib/ddr/ingesttools/ddr_rdr_migrator/file_path_adder.rb', line 12 def call scan_files(files) update_manifest manifest end |