Class: DS::Extractor::BaseRecordLocator

Inherits:
Object
  • Object
show all
Defined in:
lib/ds/extractor/base_record_locator.rb

Direct Known Subclasses

XmlRecordLocator

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBaseRecordLocator

Returns a new instance of BaseRecordLocator.



9
10
11
# File 'lib/ds/extractor/base_record_locator.rb', line 9

def initialize
  @errors = []
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



7
8
9
# File 'lib/ds/extractor/base_record_locator.rb', line 7

def errors
  @errors
end

Instance Method Details

#add_error(message) ⇒ Object



18
19
20
21
# File 'lib/ds/extractor/base_record_locator.rb', line 18

def add_error message

  @errors << message
end

#locate_record(parsed_source, id, id_location) ⇒ Object

Raises:

  • (NotImplementedError)


13
14
15
# File 'lib/ds/extractor/base_record_locator.rb', line 13

def locate_record parsed_source, id, id_location
  raise NotImplementedError
end