Class: OsCtld::Config::GarbageCollector
- Inherits:
-
Object
- Object
- OsCtld::Config::GarbageCollector
- Defined in:
- lib/osctld/config.rb
Instance Attribute Summary collapse
-
#prune_interval ⇒ Integer
readonly
Number of seconds between prunes.
Instance Method Summary collapse
-
#initialize(cfg) ⇒ GarbageCollector
constructor
A new instance of GarbageCollector.
Constructor Details
#initialize(cfg) ⇒ GarbageCollector
Returns a new instance of GarbageCollector.
119 120 121 |
# File 'lib/osctld/config.rb', line 119 def initialize(cfg) @prune_interval = cfg.fetch('prune_interval', 6 * 60 * 60) end |
Instance Attribute Details
#prune_interval ⇒ Integer (readonly)
Returns number of seconds between prunes.
117 118 119 |
# File 'lib/osctld/config.rb', line 117 def prune_interval @prune_interval end |