class Ddr::IngestTools::DdrRdrMigrator::LicenseMapper
Constants
- LICENSE_MAP
Attributes
logger[R]
manifest[R]
Public Class Methods
new(logger: nil, manifest:)
click to toggle source
# File lib/ddr/ingesttools/ddr_rdr_migrator/license_mapper.rb, line 9 def initialize(logger: nil, manifest:) @logger = logger || Logger.new(STDOUT) @manifest = manifest end
Public Instance Methods
call()
click to toggle source
# File lib/ddr/ingesttools/ddr_rdr_migrator/license_mapper.rb, line 14 def call map_licenses manifest end
Private Instance Methods
map_licenses()
click to toggle source
# File lib/ddr/ingesttools/ddr_rdr_migrator/license_mapper.rb, line 21 def map_licenses manifest.each do |row| if LICENSE_MAP.keys.include?(row['license']) row['license'] = LICENSE_MAP[row['license']] end end end