Class: RubyReactor::RetryQueuedResult
- Inherits:
-
Object
- Object
- RubyReactor::RetryQueuedResult
- Defined in:
- lib/ruby_reactor/retry_queued_result.rb
Overview
Result returned when a step retry has been queued for async execution
Instance Attribute Summary collapse
-
#attempt_number ⇒ Object
readonly
Returns the value of attribute attempt_number.
-
#next_retry_at ⇒ Object
readonly
Returns the value of attribute next_retry_at.
-
#step_name ⇒ Object
readonly
Returns the value of attribute step_name.
Instance Method Summary collapse
- #failure? ⇒ Boolean
-
#initialize(step_name, attempt_number, next_retry_at) ⇒ RetryQueuedResult
constructor
A new instance of RetryQueuedResult.
- #retry_queued? ⇒ Boolean
- #success? ⇒ Boolean
Constructor Details
#initialize(step_name, attempt_number, next_retry_at) ⇒ RetryQueuedResult
Returns a new instance of RetryQueuedResult.
8 9 10 11 12 |
# File 'lib/ruby_reactor/retry_queued_result.rb', line 8 def initialize(step_name, attempt_number, next_retry_at) @step_name = step_name @attempt_number = attempt_number @next_retry_at = next_retry_at end |
Instance Attribute Details
#attempt_number ⇒ Object (readonly)
Returns the value of attribute attempt_number.
6 7 8 |
# File 'lib/ruby_reactor/retry_queued_result.rb', line 6 def attempt_number @attempt_number end |
#next_retry_at ⇒ Object (readonly)
Returns the value of attribute next_retry_at.
6 7 8 |
# File 'lib/ruby_reactor/retry_queued_result.rb', line 6 def next_retry_at @next_retry_at end |
#step_name ⇒ Object (readonly)
Returns the value of attribute step_name.
6 7 8 |
# File 'lib/ruby_reactor/retry_queued_result.rb', line 6 def step_name @step_name end |
Instance Method Details
#failure? ⇒ Boolean
22 23 24 |
# File 'lib/ruby_reactor/retry_queued_result.rb', line 22 def failure? false end |
#retry_queued? ⇒ Boolean
14 15 16 |
# File 'lib/ruby_reactor/retry_queued_result.rb', line 14 def retry_queued? true end |
#success? ⇒ Boolean
18 19 20 |
# File 'lib/ruby_reactor/retry_queued_result.rb', line 18 def success? false end |