Class: Legion::Gaia::SessionStore::Session

Inherits:
Data
  • Object
show all
Defined in:
lib/legion/gaia/session_store.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_historyObject (readonly)

Returns the value of attribute channel_history

Returns:

  • (Object)

    the current value of channel_history



10
11
12
# File 'lib/legion/gaia/session_store.rb', line 10

def channel_history
  @channel_history
end

#created_atObject (readonly)

Returns the value of attribute created_at

Returns:

  • (Object)

    the current value of created_at



10
11
12
# File 'lib/legion/gaia/session_store.rb', line 10

def created_at
  @created_at
end

#idObject (readonly)

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



10
11
12
# File 'lib/legion/gaia/session_store.rb', line 10

def id
  @id
end

#identityObject (readonly)

Returns the value of attribute identity

Returns:

  • (Object)

    the current value of identity



10
11
12
# File 'lib/legion/gaia/session_store.rb', line 10

def identity
  @identity
end

#last_active_atObject (readonly)

Returns the value of attribute last_active_at

Returns:

  • (Object)

    the current value of last_active_at



10
11
12
# File 'lib/legion/gaia/session_store.rb', line 10

def last_active_at
  @last_active_at
end