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.



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

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

Instance Attribute Details

#argsObject (readonly)

Returns the value of attribute args.



4
5
6
# File 'lib/delayed/backend/job_preparer.rb', line 4

def args
  @args
end

#optionsObject (readonly)

Returns the value of attribute options.



4
5
6
# File 'lib/delayed/backend/job_preparer.rb', line 4

def options
  @options
end

Instance Method Details

#prepareObject



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

def prepare
  set_payload
  set_queue_name
  set_priority
  handle_deprecation
  options
end