class Unthrottle::Configuration

Attributes

db[RW]
host[RW]
key[RW]
limit[RW]
log_level[RW]
logger[RW]
port[RW]
rate_limit_time[RW]
redis[RW]

Public Class Methods

new() click to toggle source
# File lib/Unthrottle.rb, line 12
def initialize
  @host = 'localhost'
  @port = 6379
  @db = 'test'

  # Key name => time out in sec
  @key = :global            # Api key name
  @rate_limit_time = 60     # Expire time for this key
  @limit = 10               # Api call limit in timeout periode
  @log_level = Logger::INFO
end