Class: GovernorBackground::Delayed::Performer

Inherits:
Struct
  • Object
show all
Defined in:
lib/governor_background/delayed/performer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#argumentsObject

Returns the value of attribute arguments

Returns:

  • (Object)

    the current value of arguments



3
4
5
# File 'lib/governor_background/delayed/performer.rb', line 3

def arguments
  @arguments
end

#job_nameObject

Returns the value of attribute job_name

Returns:

  • (Object)

    the current value of job_name



3
4
5
# File 'lib/governor_background/delayed/performer.rb', line 3

def job_name
  @job_name
end

Instance Method Details

#performObject



4
5
6
# File 'lib/governor_background/delayed/performer.rb', line 4

def perform
  GovernorBackground.retrieve(job_name).call(*arguments)
end