Class: RecordSearch::DataSource
- Inherits:
-
Object
- Object
- RecordSearch::DataSource
- Defined in:
- lib/recordsearch/data_source.rb
Overview
Used when indexing. You can create subclass to give the indexer the data it needs.
Direct Known Subclasses
Instance Method Summary collapse
-
#next ⇒ Object
Returns the next record.
Instance Method Details
#next ⇒ Object
Returns the next record. The method in this class is abstract (or it tries to) It raises an exception telling you to implement it.
8 9 10 |
# File 'lib/recordsearch/data_source.rb', line 8 def next raise 'you must implement this method!' end |