Class: Reactor::Session::State

Inherits:
Struct
  • Object
show all
Defined in:
lib/reactor/session.rb

Direct Known Subclasses

Reactor::SessionHelper::SessionState

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#session_idObject

Returns the value of attribute session_id



11
12
13
# File 'lib/reactor/session.rb', line 11

def session_id
  @session_id
end

#user_nameObject

Returns the value of attribute user_name



11
12
13
# File 'lib/reactor/session.rb', line 11

def user_name
  @user_name
end

Class Method Details

.deserialize(array) ⇒ Object



16
17
18
# File 'lib/reactor/session.rb', line 16

def self.deserialize(array)
  self.new(*array)
end

Instance Method Details

#serializeObject



12
13
14
# File 'lib/reactor/session.rb', line 12

def serialize
  [self.user_name, self.session_id]
end