Class: OsCtld::Config::TrashBin
- Inherits:
-
Object
- Object
- OsCtld::Config::TrashBin
- 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) ⇒ TrashBin
constructor
A new instance of TrashBin.
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_interval ⇒ Integer (readonly)
Returns number of seconds between prunes.
108 109 110 |
# File 'lib/osctld/config.rb', line 108 def prune_interval @prune_interval end |