Class: Legion::Gaia::SessionStore::Session
- Inherits:
-
Data
- Object
- Data
- Legion::Gaia::SessionStore::Session
- Defined in:
- lib/legion/gaia/session_store.rb
Instance Attribute Summary collapse
-
#channel_history ⇒ Object
readonly
Returns the value of attribute channel_history.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#identity ⇒ Object
readonly
Returns the value of attribute identity.
-
#last_active_at ⇒ Object
readonly
Returns the value of attribute last_active_at.
Instance Method Summary collapse
-
#initialize(identity:, id: SecureRandom.uuid, channel_history: [], created_at: Time.now.utc, last_active_at: Time.now.utc) ⇒ Session
constructor
A new instance of Session.
Constructor Details
#initialize(identity:, id: SecureRandom.uuid, channel_history: [], created_at: Time.now.utc, last_active_at: Time.now.utc) ⇒ Session
Returns a new instance of Session.
9 10 11 12 |
# File 'lib/legion/gaia/session_store.rb', line 9 def initialize(identity:, id: SecureRandom.uuid, channel_history: [], created_at: Time.now.utc, last_active_at: Time.now.utc) super end |
Instance Attribute Details
#channel_history ⇒ Object (readonly)
Returns the value of attribute channel_history
8 9 10 |
# File 'lib/legion/gaia/session_store.rb', line 8 def channel_history @channel_history end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at
8 9 10 |
# File 'lib/legion/gaia/session_store.rb', line 8 def created_at @created_at end |
#id ⇒ Object (readonly)
Returns the value of attribute id
8 9 10 |
# File 'lib/legion/gaia/session_store.rb', line 8 def id @id end |
#identity ⇒ Object (readonly)
Returns the value of attribute identity
8 9 10 |
# File 'lib/legion/gaia/session_store.rb', line 8 def identity @identity end |
#last_active_at ⇒ Object (readonly)
Returns the value of attribute last_active_at
8 9 10 |
# File 'lib/legion/gaia/session_store.rb', line 8 def last_active_at @last_active_at end |