Class: Garcon::MemStash::Entry

Inherits:
Object
  • Object
show all
Defined in:
lib/garcon/utility/memstash.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value, expires_at) ⇒ Entry

Returns a new instance of Entry.



299
300
301
302
# File 'lib/garcon/utility/memstash.rb', line 299

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.



297
298
299
# File 'lib/garcon/utility/memstash.rb', line 297

def expires_at
  @expires_at
end

#valueObject (readonly)

Returns the value of attribute value.



296
297
298
# File 'lib/garcon/utility/memstash.rb', line 296

def value
  @value
end