Class: Wukong::Load::Loader
- Inherits:
-
Processor::FromJson
- Object
- Processor::FromJson
- Wukong::Load::Loader
- Defined in:
- lib/wukong-load/loader.rb
Overview
Base class from which to build Loaders.
Direct Known Subclasses
Instance Method Summary collapse
-
#load(record) ⇒ Object
Override this method to load a record into the data store.
-
#process(line) ⇒ Object
Calls super() to leverage its deserialization and then calls #load on the yielded record.
Instance Method Details
#load(record) ⇒ Object
Override this method to load a record into the data store.
18 19 |
# File 'lib/wukong-load/loader.rb', line 18 def load record end |
#process(line) ⇒ Object
Calls super() to leverage its deserialization and then calls
load on the yielded record.
11 12 13 |
# File 'lib/wukong-load/loader.rb', line 11 def process line super(line) { |record| load(record) } end |