Class: Delayed::Backend::JobPreparer

Inherits:
Object
  • Object
show all
Defined in:
lib/delayed/backend/job_preparer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ JobPreparer

Returns a new instance of JobPreparer.



8
9
10
11
# File 'lib/delayed/backend/job_preparer.rb', line 8

def initialize(*args)
  @options = args.extract_options!.dup
  @args = args
end

Instance Attribute Details

#argsObject (readonly)

Returns the value of attribute args.



6
7
8
# File 'lib/delayed/backend/job_preparer.rb', line 6

def args
  @args
end

#optionsObject (readonly)

Returns the value of attribute options.



6
7
8
# File 'lib/delayed/backend/job_preparer.rb', line 6

def options
  @options
end

Instance Method Details

#prepareObject



13
14
15
16
17
18
19
# File 'lib/delayed/backend/job_preparer.rb', line 13

def prepare
  set_payload
  set_queue_name
  set_priority
  handle_deprecation
  options
end