Sha256: f6b96cc1e5598f48b286244d267e5ea2da5078c24dcff6a3d4676c2358cb4863
Contents?: true
Size: 522 Bytes
Versions: 2
Compression:
Stored size: 522 Bytes
Contents
module Wukong module Load # Base class from which to build Loaders. class Loader < Wukong::Processor::FromJson # Calls super() to leverage its deserialization and then calls # #load on the yielded record. # # @param [String] line JSON to parse. def process line super(line) { |record| load(record) } end # Override this method to load a record into the data store. # # @param [Hash] record def load record end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wukong-load-0.1.1 | lib/wukong-load/loader.rb |
wukong-load-0.1.0 | lib/wukong-load/loader.rb |