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.



1123
1124
1125
1126
1127
1128
# File 'lib/claude_agent_sdk/types.rb', line 1123

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.



1121
1122
1123
# File 'lib/claude_agent_sdk/types.rb', line 1121

def hook_event_name
  @hook_event_name
end

#new_cwdObject

Returns the value of attribute new_cwd.



1121
1122
1123
# File 'lib/claude_agent_sdk/types.rb', line 1121

def new_cwd
  @new_cwd
end

#old_cwdObject

Returns the value of attribute old_cwd.



1121
1122
1123
# File 'lib/claude_agent_sdk/types.rb', line 1121

def old_cwd
  @old_cwd
end