Class: Colossus::Engine::Memory::ClientSession

Inherits:
Object
  • Object
show all
Defined in:
lib/colossus/engines/memory/client_session.rb

Overview

Represent the status and the information of a given user.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeClientSession

Returns a new instance of ClientSession.



8
9
10
11
# File 'lib/colossus/engines/memory/client_session.rb', line 8

def initialize
  @status = DISCONNECTED
  @last_seen = Time.now
end

Instance Attribute Details

#last_seenObject (readonly)

Returns the value of attribute last_seen.



6
7
8
# File 'lib/colossus/engines/memory/client_session.rb', line 6

def last_seen
  @last_seen
end

#statusObject

Returns the value of attribute status.



6
7
8
# File 'lib/colossus/engines/memory/client_session.rb', line 6

def status
  @status
end