Class: Keepit::TransientStore::Value

Inherits:
Struct
  • Object
show all
Defined in:
lib/keepit/transient_store.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#expired_atObject

Returns the value of attribute expired_at

Returns:

  • (Object)

    the current value of expired_at



3
4
5
# File 'lib/keepit/transient_store.rb', line 3

def expired_at
  @expired_at
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



3
4
5
# File 'lib/keepit/transient_store.rb', line 3

def value
  @value
end

Instance Method Details

#expired?Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/keepit/transient_store.rb', line 4

def expired?
  expired_at < Time.now.to_i
end