Sha256: bde36b1ab80dd0dff14ac9da339b7906179338d0ac44a0e3e61ee0b7e1462efc

Contents?: true

Size: 472 Bytes

Versions: 2

Compression:

Stored size: 472 Bytes

Contents

require 'qs/logger'

module Qs

  class Runner

    attr_reader :handler_class, :handler
    attr_reader :logger, :message, :params

    def initialize(handler_class, args = nil)
      args ||= {}
      @logger  = args[:logger] || Qs::NullLogger.new
      @message = args[:message]
      @params  = args[:params] || {}

      @handler_class = handler_class
      @handler = @handler_class.new(self)
    end

    def run
      raise NotImplementedError
    end

  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
qs-0.6.1 lib/qs/runner.rb
qs-0.6.0 lib/qs/runner.rb