Class: DS::Extractor::BaseRecordLocator
- Inherits:
-
Object
- Object
- DS::Extractor::BaseRecordLocator
- Defined in:
- lib/ds/extractor/base_record_locator.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
- #add_error(message) ⇒ Object
-
#initialize ⇒ BaseRecordLocator
constructor
A new instance of BaseRecordLocator.
- #locate_record(parsed_source, id, id_location) ⇒ Object
Constructor Details
#initialize ⇒ BaseRecordLocator
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
#errors ⇒ Object (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 @errors << end |
#locate_record(parsed_source, id, id_location) ⇒ Object
13 14 15 |
# File 'lib/ds/extractor/base_record_locator.rb', line 13 def locate_record parsed_source, id, id_location raise NotImplementedError end |