Class: Events::UserMessage

Inherits:
Base
  • Object
show all
Defined in:
lib/events/user_message.rb

Constant Summary collapse

TYPE =
"user_message"

Instance Attribute Summary

Attributes inherited from Base

#content, #session_id, #timestamp

Instance Method Summary collapse

Methods inherited from Base

#event_name, #to_h

Constructor Details

#initialize(content:, session_id: nil) ⇒ UserMessage

Returns a new instance of UserMessage.

Parameters:

  • content (String)

    message text

  • session_id (Integer, nil) (defaults to: nil)

    session identifier



9
10
11
# File 'lib/events/user_message.rb', line 9

def initialize(content:, session_id: nil)
  super
end

Instance Method Details

#typeObject



13
14
15
# File 'lib/events/user_message.rb', line 13

def type
  TYPE
end