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.
11 12 13 14 |
# File 'lib/legion/gaia/session_store.rb', line 11 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
10 11 12 |
# File 'lib/legion/gaia/session_store.rb', line 10 def channel_history @channel_history end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at
10 11 12 |
# File 'lib/legion/gaia/session_store.rb', line 10 def created_at @created_at end |
#id ⇒ Object (readonly)
Returns the value of attribute id
10 11 12 |
# File 'lib/legion/gaia/session_store.rb', line 10 def id @id end |
#identity ⇒ Object (readonly)
Returns the value of attribute identity
10 11 12 |
# File 'lib/legion/gaia/session_store.rb', line 10 def identity @identity end |
#last_active_at ⇒ Object (readonly)
Returns the value of attribute last_active_at
10 11 12 |
# File 'lib/legion/gaia/session_store.rb', line 10 def last_active_at @last_active_at end |