Class: Grape::Throttling::Configuration
- Inherits:
-
Object
- Object
- Grape::Throttling::Configuration
- Defined in:
- lib/grape/throttling/configuration.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#overspeed_message_method ⇒ Object
Returns the value of attribute overspeed_message_method.
-
#redis ⇒ Object
Returns the value of attribute redis.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
9 10 11 12 |
# File 'lib/grape/throttling/configuration.rb', line 9 def initialize @redis = ::Redis.new(url: 'redis://localhost:6379/0', driver: :hiredis) = :overspeed_message end |
Instance Attribute Details
#overspeed_message_method ⇒ Object
Returns the value of attribute overspeed_message_method.
6 7 8 |
# File 'lib/grape/throttling/configuration.rb', line 6 def end |
#redis ⇒ Object
Returns the value of attribute redis.
6 7 8 |
# File 'lib/grape/throttling/configuration.rb', line 6 def redis @redis end |