lib/wukong-load/loader.rb in wukong-load-0.0.2 vs lib/wukong-load/loader.rb in wukong-load-0.1.0

- old
+ new

@@ -2,13 +2,20 @@ 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