Class: Garcon::MemStash::Entry
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.
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_at ⇒ Object (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 |
#value ⇒ Object (readonly)
Returns the value of attribute value.
296 297 298 |
# File 'lib/garcon/utility/memstash.rb', line 296 def value @value end |