Sha256: bc91c36ddb478f56f16aadeaa1fb889b792e8040e818d81b48a765efeff235b3
Contents?: true
Size: 467 Bytes
Versions: 2
Compression:
Stored size: 467 Bytes
Contents
require 'qs/logger' module Qs class Runner attr_reader :handler_class, :handler attr_reader :message, :params, :logger def initialize(handler_class, args = nil) @handler_class = handler_class a = args || {} @message = a[:message] @params = a[:params] || {} @logger = a[:logger] || Qs::NullLogger.new @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.5.0 | lib/qs/runner.rb |
qs-0.4.0 | lib/qs/runner.rb |