struct ACP::Protocol::SessionInfo

Included Modules

Defined in:

acp/protocol/types.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(session_id : String, cwd : String, title : String | Nil = nil, updated_at : String | Nil = nil, meta : Hash(String, JSON::Any) | Nil = nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def cwd : String #

Absolute path to the working directory (required).


[View source]
def cwd=(cwd : String) #

Absolute path to the working directory (required).


[View source]
def meta : Hash(String, JSON::Any) | Nil #

Extension metadata.


[View source]
def meta=(meta : Hash(String, JSON::Any) | Nil) #

Extension metadata.


[View source]
def session_id : String #

Unique session identifier (required).


[View source]
def session_id=(session_id : String) #

Unique session identifier (required).


[View source]
def title : String | Nil #

Human-readable session title.


[View source]
def title=(title : String | Nil) #

Human-readable session title.


[View source]
def updated_at : String | Nil #

ISO 8601 timestamp of last activity.


[View source]
def updated_at=(updated_at : String | Nil) #

ISO 8601 timestamp of last activity.


[View source]