module Qs class RedisItem attr_reader :queue_redis_key, :serialized_payload attr_accessor :started, :finished attr_accessor :job, :handler_class attr_accessor :exception, :time_taken def initialize(queue_redis_key, serialized_payload) @queue_redis_key = queue_redis_key @serialized_payload = serialized_payload @started = false @finished = false @job = nil @handler_class = nil @exception = nil @time_taken = nil end def ==(other) if other.kind_of?(self.class) self.queue_redis_key == other.queue_redis_key && self.serialized_payload == other.serialized_payload else super end end end end