Class: Astroapi::Configuration::RetryConfig
- Inherits:
-
Object
- Object
- Astroapi::Configuration::RetryConfig
- Defined in:
- lib/astroapi/configuration.rb
Overview
Retry configuration
Instance Attribute Summary collapse
-
#attempts ⇒ Object
Returns the value of attribute attempts.
-
#delay_ms ⇒ Object
Returns the value of attribute delay_ms.
-
#retry_status_codes ⇒ Object
Returns the value of attribute retry_status_codes.
Instance Method Summary collapse
-
#initialize ⇒ RetryConfig
constructor
A new instance of RetryConfig.
Constructor Details
#initialize ⇒ RetryConfig
Returns a new instance of RetryConfig.
29 30 31 32 33 |
# File 'lib/astroapi/configuration.rb', line 29 def initialize @attempts = 0 @delay_ms = 250 @retry_status_codes = DEFAULT_RETRY_STATUS_CODES.dup end |
Instance Attribute Details
#attempts ⇒ Object
Returns the value of attribute attempts.
27 28 29 |
# File 'lib/astroapi/configuration.rb', line 27 def attempts @attempts end |
#delay_ms ⇒ Object
Returns the value of attribute delay_ms.
27 28 29 |
# File 'lib/astroapi/configuration.rb', line 27 def delay_ms @delay_ms end |
#retry_status_codes ⇒ Object
Returns the value of attribute retry_status_codes.
27 28 29 |
# File 'lib/astroapi/configuration.rb', line 27 def retry_status_codes @retry_status_codes end |