Class: ClaudeAgentSDK::StopHookInput

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

Overview

Stop 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: 'Stop', stop_hook_active: false, **base_args) ⇒ StopHookInput

Returns a new instance of StopHookInput.



319
320
321
322
323
# File 'lib/claude_agent_sdk/types.rb', line 319

def initialize(hook_event_name: 'Stop', stop_hook_active: false, **base_args)
  super(**base_args)
  @hook_event_name = hook_event_name
  @stop_hook_active = stop_hook_active
end

Instance Attribute Details

#hook_event_nameObject

Returns the value of attribute hook_event_name.



317
318
319
# File 'lib/claude_agent_sdk/types.rb', line 317

def hook_event_name
  @hook_event_name
end

#stop_hook_activeObject

Returns the value of attribute stop_hook_active.



317
318
319
# File 'lib/claude_agent_sdk/types.rb', line 317

def stop_hook_active
  @stop_hook_active
end