Class: TwitterRetry::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/twitter_retry/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

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_errorsArray<String>

Returns:

  • (Array<String>)


29
30
31
# File 'lib/twitter_retry/config.rb', line 29

def ignorable_errors
  @ignorable_errors
end

#max_retry_countInteger

Returns:

  • (Integer)


17
18
19
# File 'lib/twitter_retry/config.rb', line 17

def max_retry_count
  @max_retry_count
end

#retryable_errorsArray<String>

Returns:

  • (Array<String>)


25
26
27
# File 'lib/twitter_retry/config.rb', line 25

def retryable_errors
  @retryable_errors
end

#sleep_secondInteger

Returns:

  • (Integer)


21
22
23
# File 'lib/twitter_retry/config.rb', line 21

def sleep_second
  @sleep_second
end