Sha256: b26c55f8f4867c41f2ca46ee91d59f21a31f4313a4fc376ce4a86e9bbdcbef9a
Contents?: true
Size: 575 Bytes
Versions: 2
Compression:
Stored size: 575 Bytes
Contents
require 'qs/message_handler' module Qs module JobHandler def self.included(klass) klass.class_eval do include Qs::MessageHandler include InstanceMethods end end module InstanceMethods def inspect reference = '0x0%x' % (self.object_id << 1) "#<#{self.class}:#{reference} @job=#{job.inspect}>" end private # Helpers def job; @qs_runner.message; end def job_name; job.name; end def job_created_at; job.created_at; end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
qs-0.5.0 | lib/qs/job_handler.rb |
qs-0.4.0 | lib/qs/job_handler.rb |