Class: Labkit::RateLimit::Configuration

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

Instance Attribute Summary collapse

Instance Attribute Details

#logger ⇒ Object

rule_document is the Document every Limiter reads its contract defaults and file overrides from, unless one is passed to Limiter.new. It stays nil until the host loads one, so a host without config files never loads Config and its vendored protobuf schema.



10
11
12
# File 'lib/labkit/rate_limit/configuration.rb', line 10

def logger
  @logger
end

#redis ⇒ Object

rule_document is the Document every Limiter reads its contract defaults and file overrides from, unless one is passed to Limiter.new. It stays nil until the host loads one, so a host without config files never loads Config and its vendored protobuf schema.



10
11
12
# File 'lib/labkit/rate_limit/configuration.rb', line 10

def redis
  @redis
end

#rule_document ⇒ Object

rule_document is the Document every Limiter reads its contract defaults and file overrides from, unless one is passed to Limiter.new. It stays nil until the host loads one, so a host without config files never loads Config and its vendored protobuf schema.



10
11
12
# File 'lib/labkit/rate_limit/configuration.rb', line 10

def rule_document
  @rule_document
end