Class: DS::Manifest::DsCsvIdValidator

Inherits:
BaseIdValidator show all
Defined in:
lib/ds/manifest/ds_csv_id_validator.rb

Instance Attribute Summary

Attributes inherited from BaseIdValidator

#errors, #source

Instance Method Summary collapse

Methods inherited from BaseIdValidator

#add_error, #handle_count_error, #initialize, #valid?

Constructor Details

This class inherits a constructor from DS::Manifest::BaseIdValidator

Instance Method Details

#locate_record(source_path, id, id_location) ⇒ Object



7
8
9
10
11
12
# File 'lib/ds/manifest/ds_csv_id_validator.rb', line 7

def locate_record source_path, id, id_location
  locator = DS::Extractor::CsvRecordLocator.new
  csv = source.load_source source_path
  csv.rewind
  locator.locate_record csv, id, id_location
end