Class: Reactor::Session::State
- Inherits:
-
Struct
- Object
- Struct
- Reactor::Session::State
- Defined in:
- lib/reactor/session.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#session_id ⇒ Object
Returns the value of attribute session_id.
-
#user_name ⇒ Object
Returns the value of attribute user_name.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#session_id ⇒ Object
Returns the value of attribute session_id
11 12 13 |
# File 'lib/reactor/session.rb', line 11 def session_id @session_id end |
#user_name ⇒ Object
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
#serialize ⇒ Object
12 13 14 |
# File 'lib/reactor/session.rb', line 12 def serialize [self.user_name, self.session_id] end |