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.



1153
1154
1155
1156
1157
1158
# File 'lib/claude_agent_sdk/types.rb', line 1153

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.



1151
1152
1153
# File 'lib/claude_agent_sdk/types.rb', line 1151

def hook_event_name
  @hook_event_name
end

#new_cwdObject

Returns the value of attribute new_cwd.



1151
1152
1153
# File 'lib/claude_agent_sdk/types.rb', line 1151

def new_cwd
  @new_cwd
end

#old_cwdObject

Returns the value of attribute old_cwd.



1151
1152
1153
# File 'lib/claude_agent_sdk/types.rb', line 1151

def old_cwd
  @old_cwd
end