Class: SourceMonitor::Fetching::RetryOrchestrator::Result
- Inherits:
-
Struct
- Object
- Struct
- SourceMonitor::Fetching::RetryOrchestrator::Result
- Defined in:
- lib/source_monitor/fetching/retry_orchestrator.rb
Instance Attribute Summary collapse
-
#decision ⇒ Object
Returns the value of attribute decision.
-
#error ⇒ Object
Returns the value of attribute error.
-
#source ⇒ Object
Returns the value of attribute source.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
Instance Attribute Details
#decision ⇒ Object
Returns the value of attribute decision
12 13 14 |
# File 'lib/source_monitor/fetching/retry_orchestrator.rb', line 12 def decision @decision end |
#error ⇒ Object
Returns the value of attribute error
12 13 14 |
# File 'lib/source_monitor/fetching/retry_orchestrator.rb', line 12 def error @error end |
#source ⇒ Object
Returns the value of attribute source
12 13 14 |
# File 'lib/source_monitor/fetching/retry_orchestrator.rb', line 12 def source @source end |
#status ⇒ Object
Returns the value of attribute status
12 13 14 |
# File 'lib/source_monitor/fetching/retry_orchestrator.rb', line 12 def status @status end |
Instance Method Details
#circuit_opened? ⇒ Boolean
17 18 19 |
# File 'lib/source_monitor/fetching/retry_orchestrator.rb', line 17 def circuit_opened? status == :circuit_opened end |
#exhausted? ⇒ Boolean
21 22 23 |
# File 'lib/source_monitor/fetching/retry_orchestrator.rb', line 21 def exhausted? status == :exhausted end |
#retry_enqueued? ⇒ Boolean
13 14 15 |
# File 'lib/source_monitor/fetching/retry_orchestrator.rb', line 13 def retry_enqueued? status == :retry_enqueued end |