Module: Pause

Defined in:
lib/pause.rb,
lib/pause/action.rb,
lib/pause/logger.rb,
lib/pause/version.rb,
lib/pause/analyzer.rb,
lib/pause/configuration.rb,
lib/pause/helper/timing.rb,
lib/pause/redis/adapter.rb,
lib/pause/rate_limited_event.rb,
lib/pause/redis/sharded_adapter.rb

Defined Under Namespace

Modules: Helper, Redis Classes: Action, Analyzer, Configuration, Logger, PeriodCheck, RateLimitedEvent, SetElement

Constant Summary collapse

VERSION =
'0.5.1'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.adapterObject


40
41
42
43
44
45
46
# File 'lib/pause.rb', line 40

def adapter
  @adapter ||= if config.sharded
                 Pause::Redis::ShardedAdapter.new(config)
               else
                 Pause::Redis::Adapter.new(config)
               end
end

Class Method Details

.analyzerObject


36
37
38
# File 'lib/pause.rb', line 36

def analyzer
  @analyzer ||= Pause::Analyzer.new
end

.configObject


54
55
56
# File 'lib/pause.rb', line 54

def config(&)
  configure(&)
end

.configureObject


50
51
52
# File 'lib/pause.rb', line 50

def configure(&)
  @configure ||= Pause::Configuration.new.configure(&)
end