class Colossus::Engine::Memory::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/client_session.rb, line 8
def initialize
  @status = DISCONNECTED
  @last_seen = Time.now
end

Public Instance Methods

status=(given_status) click to toggle source
# File lib/colossus/engines/memory/client_session.rb, line 13
def status=(given_status)
  @last_seen = Time.now
  @status    = given_status
end