Class: Copilot::SessionLifecycleEvent
- Inherits:
-
Struct
- Object
- Struct
- Copilot::SessionLifecycleEvent
- Defined in:
- lib/copilot/types.rb
Overview
Session lifecycle event notification.
Instance Attribute Summary collapse
-
#metadata ⇒ Object
Returns the value of attribute metadata.
-
#session_id ⇒ Object
Returns the value of attribute session_id.
-
#type ⇒ Object
Returns the value of attribute type.
Class Method Summary collapse
Instance Attribute Details
#metadata ⇒ Object
Returns the value of attribute metadata
526 527 528 |
# File 'lib/copilot/types.rb', line 526 def @metadata end |
#session_id ⇒ Object
Returns the value of attribute session_id
526 527 528 |
# File 'lib/copilot/types.rb', line 526 def session_id @session_id end |
#type ⇒ Object
Returns the value of attribute type
526 527 528 |
# File 'lib/copilot/types.rb', line 526 def type @type end |
Class Method Details
.from_hash(h) ⇒ Object
527 528 529 530 531 532 533 |
# File 'lib/copilot/types.rb', line 527 def self.from_hash(h) new( type: h["type"], session_id: h["sessionId"], metadata: h["metadata"] ) end |