Class: ClaudeAgentSDK::SDKSessionInfo
- Inherits:
-
Object
- Object
- ClaudeAgentSDK::SDKSessionInfo
- Defined in:
- lib/claude_agent_sdk/sessions.rb
Overview
Session info returned by list_sessions
Instance Attribute Summary collapse
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#custom_title ⇒ Object
Returns the value of attribute custom_title.
-
#cwd ⇒ Object
Returns the value of attribute cwd.
-
#file_size ⇒ Object
Returns the value of attribute file_size.
-
#first_prompt ⇒ Object
Returns the value of attribute first_prompt.
-
#git_branch ⇒ Object
Returns the value of attribute git_branch.
-
#last_modified ⇒ Object
Returns the value of attribute last_modified.
-
#session_id ⇒ Object
Returns the value of attribute session_id.
-
#summary ⇒ Object
Returns the value of attribute summary.
-
#tag ⇒ Object
Returns the value of attribute tag.
Instance Method Summary collapse
-
#initialize(session_id:, summary:, last_modified:, file_size: nil, custom_title: nil, first_prompt: nil, git_branch: nil, cwd: nil, tag: nil, created_at: nil) ⇒ SDKSessionInfo
constructor
A new instance of SDKSessionInfo.
Constructor Details
#initialize(session_id:, summary:, last_modified:, file_size: nil, custom_title: nil, first_prompt: nil, git_branch: nil, cwd: nil, tag: nil, created_at: nil) ⇒ SDKSessionInfo
Returns a new instance of SDKSessionInfo.
15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/claude_agent_sdk/sessions.rb', line 15 def initialize(session_id:, summary:, last_modified:, file_size: nil, custom_title: nil, first_prompt: nil, git_branch: nil, cwd: nil, tag: nil, created_at: nil) @session_id = session_id @summary = summary @last_modified = last_modified @file_size = file_size @custom_title = custom_title @first_prompt = first_prompt @git_branch = git_branch @cwd = cwd @tag = tag @created_at = created_at end |
Instance Attribute Details
#created_at ⇒ Object
Returns the value of attribute created_at.
11 12 13 |
# File 'lib/claude_agent_sdk/sessions.rb', line 11 def created_at @created_at end |
#custom_title ⇒ Object
Returns the value of attribute custom_title.
11 12 13 |
# File 'lib/claude_agent_sdk/sessions.rb', line 11 def custom_title @custom_title end |
#cwd ⇒ Object
Returns the value of attribute cwd.
11 12 13 |
# File 'lib/claude_agent_sdk/sessions.rb', line 11 def cwd @cwd end |
#file_size ⇒ Object
Returns the value of attribute file_size.
11 12 13 |
# File 'lib/claude_agent_sdk/sessions.rb', line 11 def file_size @file_size end |
#first_prompt ⇒ Object
Returns the value of attribute first_prompt.
11 12 13 |
# File 'lib/claude_agent_sdk/sessions.rb', line 11 def first_prompt @first_prompt end |
#git_branch ⇒ Object
Returns the value of attribute git_branch.
11 12 13 |
# File 'lib/claude_agent_sdk/sessions.rb', line 11 def git_branch @git_branch end |
#last_modified ⇒ Object
Returns the value of attribute last_modified.
11 12 13 |
# File 'lib/claude_agent_sdk/sessions.rb', line 11 def last_modified @last_modified end |
#session_id ⇒ Object
Returns the value of attribute session_id.
11 12 13 |
# File 'lib/claude_agent_sdk/sessions.rb', line 11 def session_id @session_id end |
#summary ⇒ Object
Returns the value of attribute summary.
11 12 13 |
# File 'lib/claude_agent_sdk/sessions.rb', line 11 def summary @summary end |
#tag ⇒ Object
Returns the value of attribute tag.
11 12 13 |
# File 'lib/claude_agent_sdk/sessions.rb', line 11 def tag @tag end |