Class: OsCtld::Config::GarbageCollector

Inherits:
Object
  • Object
show all
Defined in:
lib/osctld/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_intervalInteger (readonly)

Returns number of seconds between prunes.

Returns:

  • (Integer)

    number of seconds between prunes



117
118
119
# File 'lib/osctld/config.rb', line 117

def prune_interval
  @prune_interval
end