class Ddr::IngestTools::DdrRdrMigrator::ManifestParser

Attributes

manifest_file_path[R]

Public Class Methods

new(manifest_file_path) click to toggle source
# File lib/ddr/ingesttools/ddr_rdr_migrator/manifest_parser.rb, line 8
def initialize(manifest_file_path)
  @manifest_file_path = manifest_file_path
end

Public Instance Methods

as_csv_table() click to toggle source
# File lib/ddr/ingesttools/ddr_rdr_migrator/manifest_parser.rb, line 12
def as_csv_table
  @csv_table ||= CSV.read(manifest_file_path, headers: true)
end
headers() click to toggle source
# File lib/ddr/ingesttools/ddr_rdr_migrator/manifest_parser.rb, line 16
def headers
  as_csv_table.headers
end