class Qless::BaseJob

The base for both Job and RecurringJob

Attributes

client[R]

Public Class Methods

new(client, jid) click to toggle source
# File lib/qless/job.rb, line 14
def initialize(client, jid)
  @client = client
  @jid    = jid
end

Public Instance Methods

==(other) click to toggle source
# File lib/qless/job.rb, line 29
def ==(other)
  self.class == other.class &&
  jid == other.jid &&
  client == other.client
end
Also aliased as: eql?
eql?(other)
Alias for: ==
hash() click to toggle source
# File lib/qless/job.rb, line 36
def hash
  self.class.hash ^ jid.hash ^ client.hash
end
klass() click to toggle source
# File lib/qless/job.rb, line 19
def klass
  @klass ||= @klass_name.split('::').reduce(Object) do |context, name|
    context.const_get(name)
  end
end
queue() click to toggle source
# File lib/qless/job.rb, line 25
def queue
  @queue ||= Queue.new(@queue_name, @client)
end