Class: ChefStash::TimeCache::Entry

Inherits:
Object
  • Object
show all
Defined in:
lib/chef_stash/time_cache.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_atObject (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

#valueObject (readonly)

Returns the value of attribute value.



287
288
289
# File 'lib/chef_stash/time_cache.rb', line 287

def value
  @value
end