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.



115
116
117
# File 'lib/osctld/config.rb', line 115

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



113
114
115
# File 'lib/osctld/config.rb', line 113

def prune_interval
  @prune_interval
end