Sha256: 81b6ea53f97ba18b8ce2f0b6fd1b55b204d962d2b69b6be98c3834915562338f
Contents?: true
Size: 514 Bytes
Versions: 2
Compression:
Stored size: 514 Bytes
Contents
module Pause class Configuration attr_writer :redis_host, :redis_port, :redis_db, :resolution, :history, :sharded def configure yield self self end def redis_host @redis_host || '127.0.0.1' end def redis_port (@redis_port || 6379).to_i end def redis_db @redis_db || '1' end def resolution (@resolution || 600).to_i end def history (@history || 86400).to_i end def sharded !!@sharded end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pause-0.2.1 | lib/pause/configuration.rb |
pause-0.2.0 | lib/pause/configuration.rb |