Class: MatrixSdk::Util::TinycacheAdapter::Value

Inherits:
Struct
  • Object
show all
Defined in:
lib/matrix_sdk/util/tinycache_adapter.rb

Instance Method Summary collapse

Instance Method Details

#expired?Boolean

Returns:

  • (Boolean)


63
64
65
66
67
# File 'lib/matrix_sdk/util/tinycache_adapter.rb', line 63

def expired?
  return false if expires_at.nil?

  Time.now > expires_at
end