Class: OsCtld::Config::TrashBin

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cfg) ⇒ TrashBin

Returns a new instance of TrashBin.



110
111
112
# File 'lib/osctld/config.rb', line 110

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



108
109
110
# File 'lib/osctld/config.rb', line 108

def prune_interval
  @prune_interval
end