Class: ClaudeAgentSDK::WorktreeCreateHookInput

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

Overview

WorktreeCreate 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: 'WorktreeCreate', name: nil, **base_args) ⇒ WorktreeCreateHookInput

Returns a new instance of WorktreeCreateHookInput.



992
993
994
995
996
# File 'lib/claude_agent_sdk/types.rb', line 992

def initialize(hook_event_name: 'WorktreeCreate', name: nil, **base_args)
  super(**base_args)
  @hook_event_name = hook_event_name
  @name = name
end

Instance Attribute Details

#hook_event_nameObject

Returns the value of attribute hook_event_name.



990
991
992
# File 'lib/claude_agent_sdk/types.rb', line 990

def hook_event_name
  @hook_event_name
end

#nameObject

Returns the value of attribute name.



990
991
992
# File 'lib/claude_agent_sdk/types.rb', line 990

def name
  @name
end