lib/qs/error_handler.rb in qs-0.3.0 vs lib/qs/error_handler.rb in qs-0.4.0

- old
+ new

@@ -29,27 +29,27 @@ end class ErrorContext attr_reader :daemon_data - attr_reader :queue_name, :serialized_payload - attr_reader :job, :handler_class + attr_reader :queue_name, :encoded_payload + attr_reader :message, :handler_class def initialize(args) - @daemon_data = args[:daemon_data] - @queue_name = Queue::RedisKey.parse_name(args[:queue_redis_key].to_s) - @serialized_payload = args[:serialized_payload] - @job = args[:job] - @handler_class = args[:handler_class] + @daemon_data = args[:daemon_data] + @queue_name = Queue::RedisKey.parse_name(args[:queue_redis_key].to_s) + @encoded_payload = args[:encoded_payload] + @message = args[:message] + @handler_class = args[:handler_class] end def ==(other) if other.kind_of?(self.class) - self.daemon_data == other.daemon_data && - self.queue_name == other.queue_name && - self.serialized_payload == other.serialized_payload && - self.job == other.job && - self.handler_class == other.handler_class + self.daemon_data == other.daemon_data && + self.queue_name == other.queue_name && + self.encoded_payload == other.encoded_payload && + self.message == other.message && + self.handler_class == other.handler_class else super end end end