Class: ClaudeAgentServer::Services::SessionEvent
- Inherits:
-
Object
- Object
- ClaudeAgentServer::Services::SessionEvent
- Defined in:
- lib/claude_agent_server/services/session_manager.rb
Overview
An indexed event wrapping an SDK message with a monotonic index
Instance Attribute Summary collapse
-
#index ⇒ Object
readonly
Returns the value of attribute index.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#timestamp ⇒ Object
readonly
Returns the value of attribute timestamp.
Instance Method Summary collapse
-
#initialize(index:, message:) ⇒ SessionEvent
constructor
A new instance of SessionEvent.
Constructor Details
#initialize(index:, message:) ⇒ SessionEvent
Returns a new instance of SessionEvent.
14 15 16 17 18 |
# File 'lib/claude_agent_server/services/session_manager.rb', line 14 def initialize(index:, message:) @index = index @message = @timestamp = Time.now end |
Instance Attribute Details
#index ⇒ Object (readonly)
Returns the value of attribute index.
12 13 14 |
# File 'lib/claude_agent_server/services/session_manager.rb', line 12 def index @index end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
12 13 14 |
# File 'lib/claude_agent_server/services/session_manager.rb', line 12 def @message end |
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
12 13 14 |
# File 'lib/claude_agent_server/services/session_manager.rb', line 12 def @timestamp end |