Class: ClaudeAgentSDK::SDKSessionInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/claude_agent_sdk/sessions.rb

Overview

Session info returned by list_sessions

Instance Attribute Summary collapse

Instance Method Summary collapse

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_atObject

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_titleObject

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

#cwdObject

Returns the value of attribute cwd.



11
12
13
# File 'lib/claude_agent_sdk/sessions.rb', line 11

def cwd
  @cwd
end

#file_sizeObject

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_promptObject

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_branchObject

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_modifiedObject

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_idObject

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

#summaryObject

Returns the value of attribute summary.



11
12
13
# File 'lib/claude_agent_sdk/sessions.rb', line 11

def summary
  @summary
end

#tagObject

Returns the value of attribute tag.



11
12
13
# File 'lib/claude_agent_sdk/sessions.rb', line 11

def tag
  @tag
end