Class: QPush::Jobs::QueueDelayed

Inherits:
Object
  • Object
show all
Includes:
QPush::Job
Defined in:
lib/qpush/jobs/queue_delayed.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from QPush::Job

_register_job, included

Constructor Details

#initialize(options) ⇒ QueueDelayed

Returns a new instance of QueueDelayed.



8
9
10
# File 'lib/qpush/jobs/queue_delayed.rb', line 8

def initialize(options)
  options.each { |key, value| send("#{key}=", value) }
end

Instance Attribute Details

#idObject

Returns the value of attribute id.



6
7
8
# File 'lib/qpush/jobs/queue_delayed.rb', line 6

def id
  @id
end

#scoreObject

Returns the value of attribute score.



6
7
8
# File 'lib/qpush/jobs/queue_delayed.rb', line 6

def score
  @score
end

Instance Method Details

#callObject



12
13
14
# File 'lib/qpush/jobs/queue_delayed.rb', line 12

def call
  'hello'
end