Class: Copilot::SessionMetadata
- Inherits:
-
Struct
- Object
- Struct
- Copilot::SessionMetadata
- Defined in:
- lib/copilot/types.rb
Overview
Metadata about a session.
Instance Attribute Summary collapse
-
#is_remote ⇒ Object
Returns the value of attribute is_remote.
-
#modified_time ⇒ Object
Returns the value of attribute modified_time.
-
#session_id ⇒ Object
Returns the value of attribute session_id.
-
#start_time ⇒ Object
Returns the value of attribute start_time.
-
#summary ⇒ Object
Returns the value of attribute summary.
Class Method Summary collapse
Instance Attribute Details
#is_remote ⇒ Object
Returns the value of attribute is_remote
442 443 444 |
# File 'lib/copilot/types.rb', line 442 def is_remote @is_remote end |
#modified_time ⇒ Object
Returns the value of attribute modified_time
442 443 444 |
# File 'lib/copilot/types.rb', line 442 def modified_time @modified_time end |
#session_id ⇒ Object
Returns the value of attribute session_id
442 443 444 |
# File 'lib/copilot/types.rb', line 442 def session_id @session_id end |
#start_time ⇒ Object
Returns the value of attribute start_time
442 443 444 |
# File 'lib/copilot/types.rb', line 442 def start_time @start_time end |
#summary ⇒ Object
Returns the value of attribute summary
442 443 444 |
# File 'lib/copilot/types.rb', line 442 def summary @summary end |
Class Method Details
.from_hash(h) ⇒ Object
446 447 448 449 450 451 452 453 454 |
# File 'lib/copilot/types.rb', line 446 def self.from_hash(h) new( session_id: h["sessionId"], start_time: h["startTime"], modified_time: h["modifiedTime"], summary: h["summary"], is_remote: h["isRemote"] ) end |