lib/chronicle/etl/loaders/loader.rb in chronicle-etl-0.3.1 vs lib/chronicle/etl/loaders/loader.rb in chronicle-etl-0.4.0
- old
+ new
@@ -1,16 +1,19 @@
module Chronicle
module ETL
# Abstract class representing a Loader for an ETL job
class Loader
extend Chronicle::ETL::Registry::SelfRegistering
+ include Chronicle::ETL::Configurable
+ setting :output
+
# Construct a new instance of this loader. Options are passed in from a Runner
# == Parameters:
# options::
# Options for configuring this Loader
def initialize(options = {})
- @options = options
+ apply_options(options)
end
# Called once before processing records
def start; end