Sha256: 7e79c0d6863067ca2a39ea2f69586cbc093543e9c007d5d746d6635bae9abf6b

Contents?: true

Size: 368 Bytes

Versions: 6

Compression:

Stored size: 368 Bytes

Contents

require 'csv'

module Ddr::IngestTools::DdrRdrMigrator
  class ManifestParser

    attr_reader :manifest_file_path

    def initialize(manifest_file_path)
      @manifest_file_path = manifest_file_path
    end

    def as_csv_table
      @csv_table ||= CSV.read(manifest_file_path, headers: true)
    end

    def headers
      as_csv_table.headers
    end

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ddr-ingesttools-0.6.1 lib/ddr/ingesttools/ddr_rdr_migrator/manifest_parser.rb
ddr-ingesttools-0.6.0 lib/ddr/ingesttools/ddr_rdr_migrator/manifest_parser.rb
ddr-ingesttools-0.5.0 lib/ddr/ingesttools/ddr_rdr_migrator/manifest_parser.rb
ddr-ingesttools-0.5.0.rc3 lib/ddr/ingesttools/ddr_rdr_migrator/manifest_parser.rb
ddr-ingesttools-0.5.0.rc2 lib/ddr/ingesttools/ddr_rdr_migrator/manifest_parser.rb
ddr-ingesttools-0.5.0.rc1 lib/ddr/ingesttools/ddr_rdr_migrator/manifest_parser.rb