class Colossus::Engine::MemoryThreadSafe::ClientSession
Represent the status and the information of a given user.
Attributes
last_seen[R]
status[R]
Public Class Methods
new()
click to toggle source
# File lib/colossus/engines/memory_thread_safe/client_session.rb, line 8 def initialize @data = ThreadSafe::Cache.new @data[:status] = DISCONNECTED @data[:last_seen] = Time.now end
Public Instance Methods
status=(given_status)
click to toggle source
# File lib/colossus/engines/memory_thread_safe/client_session.rb, line 18 def status=(given_status) @data[:last_seen] = Time.now @data[:status] = given_status end