Class: ClaudeAgentSDK::BaseHookInput

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

Overview

Base hook input with common fields

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(session_id: nil, transcript_path: nil, cwd: nil, permission_mode: nil) ⇒ BaseHookInput

Returns a new instance of BaseHookInput.



739
740
741
742
743
744
# File 'lib/claude_agent_sdk/types.rb', line 739

def initialize(session_id: nil, transcript_path: nil, cwd: nil, permission_mode: nil)
  @session_id = session_id
  @transcript_path = transcript_path
  @cwd = cwd
  @permission_mode = permission_mode
end

Instance Attribute Details

#cwdObject

Returns the value of attribute cwd.



737
738
739
# File 'lib/claude_agent_sdk/types.rb', line 737

def cwd
  @cwd
end

#permission_modeObject

Returns the value of attribute permission_mode.



737
738
739
# File 'lib/claude_agent_sdk/types.rb', line 737

def permission_mode
  @permission_mode
end

#session_idObject

Returns the value of attribute session_id.



737
738
739
# File 'lib/claude_agent_sdk/types.rb', line 737

def session_id
  @session_id
end

#transcript_pathObject

Returns the value of attribute transcript_path.



737
738
739
# File 'lib/claude_agent_sdk/types.rb', line 737

def transcript_path
  @transcript_path
end