Class: ActionThrottling::Configuration
- Inherits:
-
Object
- Object
- ActionThrottling::Configuration
- Defined in:
- lib/action_throttling/configuration.rb
Instance Attribute Summary collapse
-
#bucket_key ⇒ Object
Returns the value of attribute bucket_key.
-
#redis ⇒ Object
Returns the value of attribute redis.
-
#regenerate_amount ⇒ Object
Returns the value of attribute regenerate_amount.
-
#regenerate_interval ⇒ Object
Returns the value of attribute regenerate_interval.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 |
# File 'lib/action_throttling/configuration.rb', line 5 def initialize self.redis = Redis.new end |
Instance Attribute Details
#bucket_key ⇒ Object
Returns the value of attribute bucket_key.
3 4 5 |
# File 'lib/action_throttling/configuration.rb', line 3 def bucket_key @bucket_key end |
#redis ⇒ Object
Returns the value of attribute redis.
3 4 5 |
# File 'lib/action_throttling/configuration.rb', line 3 def redis @redis end |
#regenerate_amount ⇒ Object
Returns the value of attribute regenerate_amount.
3 4 5 |
# File 'lib/action_throttling/configuration.rb', line 3 def regenerate_amount @regenerate_amount end |
#regenerate_interval ⇒ Object
Returns the value of attribute regenerate_interval.
3 4 5 |
# File 'lib/action_throttling/configuration.rb', line 3 def regenerate_interval @regenerate_interval end |