Class: Operto::MemoryTokenStore::Token

Inherits:
Struct
  • Object
show all
Defined in:
lib/operto/memory_token_store.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#access_tokenObject

Returns the value of attribute access_token

Returns:

  • (Object)

    the current value of access_token



7
8
9
# File 'lib/operto/memory_token_store.rb', line 7

def access_token
  @access_token
end

#expires_atObject

Returns the value of attribute expires_at

Returns:

  • (Object)

    the current value of expires_at



7
8
9
# File 'lib/operto/memory_token_store.rb', line 7

def expires_at
  @expires_at
end

#refresh_expires_atObject

Returns the value of attribute refresh_expires_at

Returns:

  • (Object)

    the current value of refresh_expires_at



7
8
9
# File 'lib/operto/memory_token_store.rb', line 7

def refresh_expires_at
  @refresh_expires_at
end

#refresh_tokenObject

Returns the value of attribute refresh_token

Returns:

  • (Object)

    the current value of refresh_token



7
8
9
# File 'lib/operto/memory_token_store.rb', line 7

def refresh_token
  @refresh_token
end

Instance Method Details

#expired?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/operto/memory_token_store.rb', line 8

def expired?
  expires_at.nil? || expires_at < Time.now
end