Class: RubyReactor::InterruptResult
- Inherits:
-
Object
- Object
- RubyReactor::InterruptResult
- Defined in:
- lib/ruby_reactor/interrupt_result.rb
Instance Attribute Summary collapse
-
#correlation_id ⇒ Object
readonly
Returns the value of attribute correlation_id.
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#execution_id ⇒ Object
readonly
Returns the value of attribute execution_id.
-
#intermediate_results ⇒ Object
readonly
Returns the value of attribute intermediate_results.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#timeout_at ⇒ Object
readonly
Returns the value of attribute timeout_at.
Instance Method Summary collapse
-
#initialize(execution_id:, correlation_id: nil, timeout_at: nil, intermediate_results: {}, error: nil) ⇒ InterruptResult
constructor
A new instance of InterruptResult.
- #paused? ⇒ Boolean
Constructor Details
#initialize(execution_id:, correlation_id: nil, timeout_at: nil, intermediate_results: {}, error: nil) ⇒ InterruptResult
Returns a new instance of InterruptResult.
7 8 9 10 11 12 13 14 |
# File 'lib/ruby_reactor/interrupt_result.rb', line 7 def initialize(execution_id:, correlation_id: nil, timeout_at: nil, intermediate_results: {}, error: nil) @execution_id = execution_id @correlation_id = correlation_id @status = :paused @timeout_at = timeout_at @intermediate_results = intermediate_results @error = error end |
Instance Attribute Details
#correlation_id ⇒ Object (readonly)
Returns the value of attribute correlation_id.
5 6 7 |
# File 'lib/ruby_reactor/interrupt_result.rb', line 5 def correlation_id @correlation_id end |
#error ⇒ Object (readonly)
Returns the value of attribute error.
5 6 7 |
# File 'lib/ruby_reactor/interrupt_result.rb', line 5 def error @error end |
#execution_id ⇒ Object (readonly)
Returns the value of attribute execution_id.
5 6 7 |
# File 'lib/ruby_reactor/interrupt_result.rb', line 5 def execution_id @execution_id end |
#intermediate_results ⇒ Object (readonly)
Returns the value of attribute intermediate_results.
5 6 7 |
# File 'lib/ruby_reactor/interrupt_result.rb', line 5 def intermediate_results @intermediate_results end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
5 6 7 |
# File 'lib/ruby_reactor/interrupt_result.rb', line 5 def status @status end |
#timeout_at ⇒ Object (readonly)
Returns the value of attribute timeout_at.
5 6 7 |
# File 'lib/ruby_reactor/interrupt_result.rb', line 5 def timeout_at @timeout_at end |
Instance Method Details
#paused? ⇒ Boolean
16 17 18 |
# File 'lib/ruby_reactor/interrupt_result.rb', line 16 def paused? true end |