Sha256: 99ca41eb61ebbf6500a9709abf6531f652fef2589945df563180e01550501c08

Contents?: true

Size: 455 Bytes

Versions: 3

Compression:

Stored size: 455 Bytes

Contents

require 'qs/logger'

module Qs

  class Runner

    attr_reader :handler_class, :handler
    attr_reader :job, :params, :logger

    def initialize(handler_class, args = nil)
      @handler_class = handler_class
      @handler = @handler_class.new(self)

      a = args || {}
      @job    = a[:job]
      @params = a[:params] || {}
      @logger = a[:logger] || Qs::NullLogger.new
    end

    def run
      raise NotImplementedError
    end

  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
qs-0.3.0 lib/qs/runner.rb
qs-0.2.0 lib/qs/runner.rb
qs-0.1.0 lib/qs/runner.rb