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.
289 290 291 292 293 |
# File 'lib/ruby_reactor.rb', line 289 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.
287 288 289 |
# File 'lib/ruby_reactor.rb', line 287 def execution_id @execution_id end |
#intermediate_results ⇒ Object (readonly)
Returns the value of attribute intermediate_results.
287 288 289 |
# File 'lib/ruby_reactor.rb', line 287 def intermediate_results @intermediate_results end |
#job_id ⇒ Object (readonly)
Returns the value of attribute job_id.
287 288 289 |
# File 'lib/ruby_reactor.rb', line 287 def job_id @job_id end |
Instance Method Details
#async? ⇒ Boolean
295 296 297 |
# File 'lib/ruby_reactor.rb', line 295 def async? true end |
#failure? ⇒ Boolean
303 304 305 |
# File 'lib/ruby_reactor.rb', line 303 def failure? false end |
#success? ⇒ Boolean
299 300 301 |
# File 'lib/ruby_reactor.rb', line 299 def success? false end |