class Qs::QueueItem

Attributes

encoded_payload[R]
exception[RW]
finished[RW]
handler_class[RW]
message[RW]
queue_redis_key[R]
started[RW]
time_taken[RW]

Public Class Methods

new(queue_redis_key, encoded_payload) click to toggle source
# File lib/qs/queue_item.rb, line 10
def initialize(queue_redis_key, encoded_payload)
  @queue_redis_key = queue_redis_key
  @encoded_payload = encoded_payload
  @started         = false
  @finished        = false

  @message       = nil
  @handler_class = nil
  @exception     = nil
  @time_taken    = nil
end

Public Instance Methods

==(other) click to toggle source
Calls superclass method
# File lib/qs/queue_item.rb, line 22
def ==(other)
  if other.kind_of?(self.class)
    self.queue_redis_key == other.queue_redis_key &&
    self.encoded_payload == other.encoded_payload
  else
    super
  end
end