Class: Aws::Rails::SqsActiveJob::JobRunner
- Inherits:
-
Object
- Object
- Aws::Rails::SqsActiveJob::JobRunner
- Defined in:
- lib/aws/rails/sqs_active_job/job_runner.rb
Instance Attribute Summary collapse
-
#class_name ⇒ Object
readonly
Returns the value of attribute class_name.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
- #exception_executions? ⇒ Boolean
-
#initialize(message) ⇒ JobRunner
constructor
A new instance of JobRunner.
- #run ⇒ Object
Constructor Details
Instance Attribute Details
#class_name ⇒ Object (readonly)
Returns the value of attribute class_name.
7 8 9 |
# File 'lib/aws/rails/sqs_active_job/job_runner.rb', line 7 def class_name @class_name end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
7 8 9 |
# File 'lib/aws/rails/sqs_active_job/job_runner.rb', line 7 def id @id end |
Instance Method Details
#exception_executions? ⇒ Boolean
19 20 21 22 |
# File 'lib/aws/rails/sqs_active_job/job_runner.rb', line 19 def exception_executions? @job_data['exception_executions'] && !@job_data['exception_executions'].empty? end |
#run ⇒ Object
15 16 17 |
# File 'lib/aws/rails/sqs_active_job/job_runner.rb', line 15 def run ActiveJob::Base.execute @job_data end |