Class: Herve::Cache::Timestamp
- Inherits:
-
Object
- Object
- Herve::Cache::Timestamp
- Defined in:
- lib/herve/cache/timestamp.rb
Instance Attribute Summary collapse
- #time ⇒ Time readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(time) ⇒ Timestamp
constructor
A new instance of Timestamp.
Constructor Details
#initialize(time) ⇒ Timestamp
Returns a new instance of Timestamp.
21 22 23 |
# File 'lib/herve/cache/timestamp.rb', line 21 def initialize(time) @time = time end |
Instance Attribute Details
#time ⇒ Time (readonly)
5 6 7 |
# File 'lib/herve/cache/timestamp.rb', line 5 def time @time end |