Class: ClaudeAgentSDK::CwdChangedHookInput
- Inherits:
-
BaseHookInput
- Object
- BaseHookInput
- ClaudeAgentSDK::CwdChangedHookInput
- Defined in:
- lib/claude_agent_sdk/types.rb
Overview
CwdChanged hook input
Instance Attribute Summary collapse
-
#hook_event_name ⇒ Object
Returns the value of attribute hook_event_name.
-
#new_cwd ⇒ Object
Returns the value of attribute new_cwd.
-
#old_cwd ⇒ Object
Returns the value of attribute old_cwd.
Attributes inherited from BaseHookInput
#cwd, #permission_mode, #session_id, #transcript_path
Instance Method Summary collapse
-
#initialize(hook_event_name: 'CwdChanged', old_cwd: nil, new_cwd: nil, **base_args) ⇒ CwdChangedHookInput
constructor
A new instance of CwdChangedHookInput.
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_name ⇒ Object
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_cwd ⇒ Object
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_cwd ⇒ Object
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 |