Class: ExcessFlow::Configuration
- Inherits:
-
Object
- Object
- ExcessFlow::Configuration
- Defined in:
- lib/excess_flow/configuration.rb
Overview
ExcessFlow::Configuration
Holds configuration for rate limiter with writeable attributes allowing dynamic change of configuration during runtime
Instance Attribute Summary collapse
-
#connection_pool ⇒ Object
Returns the value of attribute connection_pool.
-
#connection_timeout ⇒ Object
Returns the value of attribute connection_timeout.
-
#redis_url ⇒ Object
Returns the value of attribute redis_url.
-
#sentinels ⇒ Object
Returns the value of attribute sentinels.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
30 31 32 33 34 35 |
# File 'lib/excess_flow/configuration.rb', line 30 def initialize @connection_pool = extract_connection_pool @connection_timeout = extract_connection_timeout @redis_url = extract_redis_url @sentinels = process_sentinels end |
Instance Attribute Details
#connection_pool ⇒ Object
Returns the value of attribute connection_pool.
23 24 25 |
# File 'lib/excess_flow/configuration.rb', line 23 def connection_pool @connection_pool end |
#connection_timeout ⇒ Object
Returns the value of attribute connection_timeout.
23 24 25 |
# File 'lib/excess_flow/configuration.rb', line 23 def connection_timeout @connection_timeout end |
#redis_url ⇒ Object
Returns the value of attribute redis_url.
23 24 25 |
# File 'lib/excess_flow/configuration.rb', line 23 def redis_url @redis_url end |
#sentinels ⇒ Object
Returns the value of attribute sentinels.
23 24 25 |
# File 'lib/excess_flow/configuration.rb', line 23 def sentinels @sentinels end |