Class: EasyRetry::Configuration
- Inherits:
-
Object
- Object
- EasyRetry::Configuration
- Defined in:
- lib/easy_retry/configuration.rb
Overview
Configuration class
Instance Attribute Summary collapse
-
#delay_algorithm ⇒ Object
Returns the value of attribute delay_algorithm.
-
#logger ⇒ Object
Returns the value of attribute logger.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
10 11 12 13 |
# File 'lib/easy_retry/configuration.rb', line 10 def initialize @logger = Logger.new($stdout) @delay_algorithm = :default end |
Instance Attribute Details
#delay_algorithm ⇒ Object
Returns the value of attribute delay_algorithm.
8 9 10 |
# File 'lib/easy_retry/configuration.rb', line 8 def delay_algorithm @delay_algorithm end |
#logger ⇒ Object
Returns the value of attribute logger.
8 9 10 |
# File 'lib/easy_retry/configuration.rb', line 8 def logger @logger end |