Class: ChefStash::TimeCache::Entry
- Inherits:
-
Object
- Object
- ChefStash::TimeCache::Entry
- Defined in:
- lib/chef_stash/time_cache.rb
Instance Attribute Summary collapse
-
#expires_at ⇒ Object
readonly
Returns the value of attribute expires_at.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value, expires_at) ⇒ Entry
constructor
A new instance of Entry.
Constructor Details
#initialize(value, expires_at) ⇒ Entry
Returns a new instance of Entry.
290 291 292 293 |
# File 'lib/chef_stash/time_cache.rb', line 290 def initialize(value, expires_at) @value = value @expires_at = expires_at end |
Instance Attribute Details
#expires_at ⇒ Object (readonly)
Returns the value of attribute expires_at.
288 289 290 |
# File 'lib/chef_stash/time_cache.rb', line 288 def expires_at @expires_at end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
287 288 289 |
# File 'lib/chef_stash/time_cache.rb', line 287 def value @value end |