class Chronicle::ETL::Loader

Abstract class representing a Loader for an ETL job

Public Class Methods

new(options = {}) click to toggle source

Construct a new instance of this loader. Options are passed in from a Runner

Parameters:

options

Options for configuring this Loader

# File lib/chronicle/etl/loaders/loader.rb, line 11
def initialize(options = {})
  @options = options
end

Public Instance Methods

finish() click to toggle source

Called once there are no more records to process

# File lib/chronicle/etl/loaders/loader.rb, line 24
def finish; end
load() click to toggle source

Load a single record

# File lib/chronicle/etl/loaders/loader.rb, line 19
def load
  raise NotImplementedError
end
start() click to toggle source

Called once before processing records

# File lib/chronicle/etl/loaders/loader.rb, line 16
def start; end