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.



14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/claude_agent_sdk/sessions.rb', line 14

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.



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

def created_at
  @created_at
end

#custom_titleObject

Returns the value of attribute custom_title.



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

def custom_title
  @custom_title
end

#cwdObject

Returns the value of attribute cwd.



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

def cwd
  @cwd
end

#file_sizeObject

Returns the value of attribute file_size.



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

def file_size
  @file_size
end

#first_promptObject

Returns the value of attribute first_prompt.



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

def first_prompt
  @first_prompt
end

#git_branchObject

Returns the value of attribute git_branch.



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

def git_branch
  @git_branch
end

#last_modifiedObject

Returns the value of attribute last_modified.



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

def last_modified
  @last_modified
end

#session_idObject

Returns the value of attribute session_id.



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

def session_id
  @session_id
end

#summaryObject

Returns the value of attribute summary.



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

def summary
  @summary
end

#tagObject

Returns the value of attribute tag.



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

def tag
  @tag
end