Class: TwitterRetry::Config
- Inherits:
-
Object
- Object
- TwitterRetry::Config
- Defined in:
- lib/twitter_retry/config.rb
Instance Attribute Summary collapse
- #ignorable_errors ⇒ Array<String>
- #max_retry_count ⇒ Integer
- #retryable_errors ⇒ Array<String>
- #sleep_second ⇒ Integer
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
31 32 33 34 35 36 |
# File 'lib/twitter_retry/config.rb', line 31 def initialize @max_retry_count = 3 @sleep_second = 1 @retryable_errors = DEFAULT_RETRYABLE_ERRORS @ignorable_errors = DEFAULT_IGNORABLE_ERRORS end |
Instance Attribute Details
#ignorable_errors ⇒ Array<String>
29 30 31 |
# File 'lib/twitter_retry/config.rb', line 29 def ignorable_errors @ignorable_errors end |
#max_retry_count ⇒ Integer
17 18 19 |
# File 'lib/twitter_retry/config.rb', line 17 def max_retry_count @max_retry_count end |
#retryable_errors ⇒ Array<String>
25 26 27 |
# File 'lib/twitter_retry/config.rb', line 25 def retryable_errors @retryable_errors end |
#sleep_second ⇒ Integer
21 22 23 |
# File 'lib/twitter_retry/config.rb', line 21 def sleep_second @sleep_second end |