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.



971
972
973
974
975
# File 'lib/claude_agent_sdk/types.rb', line 971

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.



969
970
971
# File 'lib/claude_agent_sdk/types.rb', line 969

def hook_event_name
  @hook_event_name
end

#nameObject

Returns the value of attribute name.



969
970
971
# File 'lib/claude_agent_sdk/types.rb', line 969

def name
  @name
end