class Ddr::IngestTools::DdrRdrMigrator::ColumnRemover

Constants

UNNEEDED_COLUMNS

Attributes

logger[R]
manifest[R]

Public Class Methods

new(logger: nil, manifest:) click to toggle source
# File lib/ddr/ingesttools/ddr_rdr_migrator/column_remover.rb, line 8
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/column_remover.rb, line 13
def call
  remove
  manifest
end

Private Instance Methods

remove() click to toggle source
# File lib/ddr/ingesttools/ddr_rdr_migrator/column_remover.rb, line 20
def remove
  UNNEEDED_COLUMNS.each { |col| manifest.delete(col) }
end