Class: ClaudeAgentSDK::WorktreeRemoveHookInput

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

Overview

WorktreeRemove 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: 'WorktreeRemove', worktree_path: nil, **base_args) ⇒ WorktreeRemoveHookInput

Returns a new instance of WorktreeRemoveHookInput.



982
983
984
985
986
# File 'lib/claude_agent_sdk/types.rb', line 982

def initialize(hook_event_name: 'WorktreeRemove', worktree_path: nil, **base_args)
  super(**base_args)
  @hook_event_name = hook_event_name
  @worktree_path = worktree_path
end

Instance Attribute Details

#hook_event_nameObject

Returns the value of attribute hook_event_name.



980
981
982
# File 'lib/claude_agent_sdk/types.rb', line 980

def hook_event_name
  @hook_event_name
end

#worktree_pathObject

Returns the value of attribute worktree_path.



980
981
982
# File 'lib/claude_agent_sdk/types.rb', line 980

def worktree_path
  @worktree_path
end