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
523 524 525 |
# File 'lib/copilot/types.rb', line 523 def @metadata end |
#session_id ⇒ Object
Returns the value of attribute session_id
523 524 525 |
# File 'lib/copilot/types.rb', line 523 def session_id @session_id end |
#type ⇒ Object
Returns the value of attribute type
523 524 525 |
# File 'lib/copilot/types.rb', line 523 def type @type end |
Class Method Details
.from_hash(h) ⇒ Object
524 525 526 527 528 529 530 |
# File 'lib/copilot/types.rb', line 524 def self.from_hash(h) new( type: h["type"], session_id: h["sessionId"], metadata: h["metadata"] ) end |