Class: ClaudeAgentSDK::CwdChangedHookInput

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

Overview

CwdChanged hook input

Instance Attribute Summary collapse

Attributes inherited from BaseHookInput

#cwd, #permission_mode, #session_id, #transcript_path

Instance Method Summary collapse

Constructor Details

#initialize(hook_event_name: 'CwdChanged', old_cwd: nil, new_cwd: nil, **base_args) ⇒ CwdChangedHookInput

Returns a new instance of CwdChangedHookInput.



1102
1103
1104
1105
1106
1107
# File 'lib/claude_agent_sdk/types.rb', line 1102

def initialize(hook_event_name: 'CwdChanged', old_cwd: nil, new_cwd: nil, **base_args)
  super(**base_args)
  @hook_event_name = hook_event_name
  @old_cwd = old_cwd
  @new_cwd = new_cwd
end

Instance Attribute Details

#hook_event_nameObject

Returns the value of attribute hook_event_name.



1100
1101
1102
# File 'lib/claude_agent_sdk/types.rb', line 1100

def hook_event_name
  @hook_event_name
end

#new_cwdObject

Returns the value of attribute new_cwd.



1100
1101
1102
# File 'lib/claude_agent_sdk/types.rb', line 1100

def new_cwd
  @new_cwd
end

#old_cwdObject

Returns the value of attribute old_cwd.



1100
1101
1102
# File 'lib/claude_agent_sdk/types.rb', line 1100

def old_cwd
  @old_cwd
end