Class: GoodJob::ExecutionResult
- Inherits:
-
Object
- Object
- GoodJob::ExecutionResult
- Defined in:
- lib/good_job/execution_result.rb
Overview
Stores the results of job execution
Instance Attribute Summary collapse
- #handled_error ⇒ Exception? readonly
- #unhandled_error ⇒ Exception? readonly
- #value ⇒ Object? readonly
Instance Method Summary collapse
-
#initialize(value:, handled_error: nil, unhandled_error: nil) ⇒ ExecutionResult
constructor
A new instance of ExecutionResult.
Constructor Details
#initialize(value:, handled_error: nil, unhandled_error: nil) ⇒ ExecutionResult
Returns a new instance of ExecutionResult.
15 16 17 18 19 |
# File 'lib/good_job/execution_result.rb', line 15 def initialize(value:, handled_error: nil, unhandled_error: nil) @value = value @handled_error = handled_error @unhandled_error = unhandled_error end |
Instance Attribute Details
#handled_error ⇒ Exception? (readonly)
8 9 10 |
# File 'lib/good_job/execution_result.rb', line 8 def handled_error @handled_error end |
#unhandled_error ⇒ Exception? (readonly)
10 11 12 |
# File 'lib/good_job/execution_result.rb', line 10 def unhandled_error @unhandled_error end |
#value ⇒ Object? (readonly)
6 7 8 |
# File 'lib/good_job/execution_result.rb', line 6 def value @value end |