Class: ActionThrottling::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_keyObject

Returns the value of attribute bucket_key.



3
4
5
# File 'lib/action_throttling/configuration.rb', line 3

def bucket_key
  @bucket_key
end

#redisObject

Returns the value of attribute redis.



3
4
5
# File 'lib/action_throttling/configuration.rb', line 3

def redis
  @redis
end

#regenerate_amountObject

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_intervalObject

Returns the value of attribute regenerate_interval.



3
4
5
# File 'lib/action_throttling/configuration.rb', line 3

def regenerate_interval
  @regenerate_interval
end