Class: Slop::DurationOption
- Inherits:
-
Option
- Object
- Option
- Slop::DurationOption
- Defined in:
- lib/httpdisk/slop_duration.rb
Overview
Custom duration type for Slop, used for –expires. Raises aggressively because this is a tricky and lightly documented option.
Constant Summary collapse
- UNITS =
{ s: 1, m: 60, h: 60 * 60, d: 24 * 60 * 60, w: 7 * 24 * 60 * 60, y: 365 * 7 * 24 * 60 * 60, }.freeze