Class: EasyRetry::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/easy_retry/configuration.rb

Overview

Configuration class

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_algorithmObject

Returns the value of attribute delay_algorithm.



8
9
10
# File 'lib/easy_retry/configuration.rb', line 8

def delay_algorithm
  @delay_algorithm
end

#loggerObject

Returns the value of attribute logger.



8
9
10
# File 'lib/easy_retry/configuration.rb', line 8

def logger
  @logger
end