Class: Delayed::Backend::Dummy::Job

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/delayed/backend/dummy.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Job

Returns a new instance of Job.



10
11
12
13
# File 'lib/delayed/backend/dummy.rb', line 10

def initialize(options)
  @attempts = 0
  @payload_object = options[:payload_object]
end

Instance Attribute Details

#attemptsObject

Returns the value of attribute attempts.



7
8
9
# File 'lib/delayed/backend/dummy.rb', line 7

def attempts
  @attempts
end

#failed_atObject

Returns the value of attribute failed_at.



7
8
9
# File 'lib/delayed/backend/dummy.rb', line 7

def failed_at
  @failed_at
end

#handlerObject

Returns the value of attribute handler.



7
8
9
# File 'lib/delayed/backend/dummy.rb', line 7

def handler
  @handler
end

#idObject

Returns the value of attribute id.



7
8
9
# File 'lib/delayed/backend/dummy.rb', line 7

def id
  @id
end

#last_errorObject

Returns the value of attribute last_error.



7
8
9
# File 'lib/delayed/backend/dummy.rb', line 7

def last_error
  @last_error
end

#locked_atObject

Returns the value of attribute locked_at.



7
8
9
# File 'lib/delayed/backend/dummy.rb', line 7

def locked_at
  @locked_at
end

#locked_byObject

Returns the value of attribute locked_by.



7
8
9
# File 'lib/delayed/backend/dummy.rb', line 7

def locked_by
  @locked_by
end

#priorityObject

Returns the value of attribute priority.



7
8
9
# File 'lib/delayed/backend/dummy.rb', line 7

def priority
  @priority
end

#queueObject

Returns the value of attribute queue.



7
8
9
# File 'lib/delayed/backend/dummy.rb', line 7

def queue
  @queue
end

#run_atObject

Returns the value of attribute run_at.



7
8
9
# File 'lib/delayed/backend/dummy.rb', line 7

def run_at
  @run_at
end

Instance Method Details

#destroyObject



15
16
17
# File 'lib/delayed/backend/dummy.rb', line 15

def destroy
  # puts last_error
end