Class: RubyReactor::AsyncResult
- Inherits:
-
Object
- Object
- RubyReactor::AsyncResult
- Defined in:
- lib/ruby_reactor.rb
Overview
Async result for background job execution
Instance Attribute Summary collapse
-
#execution_id ⇒ Object
readonly
Returns the value of attribute execution_id.
-
#intermediate_results ⇒ Object
readonly
Returns the value of attribute intermediate_results.
-
#job_id ⇒ Object
readonly
Returns the value of attribute job_id.
Instance Method Summary collapse
- #async? ⇒ Boolean
- #failure? ⇒ Boolean
-
#initialize(job_id:, intermediate_results: {}, execution_id: nil) ⇒ AsyncResult
constructor
A new instance of AsyncResult.
- #success? ⇒ Boolean
Constructor Details
#initialize(job_id:, intermediate_results: {}, execution_id: nil) ⇒ AsyncResult
Returns a new instance of AsyncResult.
291 292 293 294 295 |
# File 'lib/ruby_reactor.rb', line 291 def initialize(job_id:, intermediate_results: {}, execution_id: nil) @job_id = job_id @intermediate_results = intermediate_results @execution_id = execution_id end |
Instance Attribute Details
#execution_id ⇒ Object (readonly)
Returns the value of attribute execution_id.
289 290 291 |
# File 'lib/ruby_reactor.rb', line 289 def execution_id @execution_id end |
#intermediate_results ⇒ Object (readonly)
Returns the value of attribute intermediate_results.
289 290 291 |
# File 'lib/ruby_reactor.rb', line 289 def intermediate_results @intermediate_results end |
#job_id ⇒ Object (readonly)
Returns the value of attribute job_id.
289 290 291 |
# File 'lib/ruby_reactor.rb', line 289 def job_id @job_id end |
Instance Method Details
#async? ⇒ Boolean
297 298 299 |
# File 'lib/ruby_reactor.rb', line 297 def async? true end |
#failure? ⇒ Boolean
305 306 307 |
# File 'lib/ruby_reactor.rb', line 305 def failure? false end |
#success? ⇒ Boolean
301 302 303 |
# File 'lib/ruby_reactor.rb', line 301 def success? false end |