Class: ClaudeAgentSDK::SessionEndHookInput

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

Overview

SessionEnd 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: 'SessionEnd', reason: nil, **base_args) ⇒ SessionEndHookInput

Returns a new instance of SessionEndHookInput.



909
910
911
912
913
# File 'lib/claude_agent_sdk/types.rb', line 909

def initialize(hook_event_name: 'SessionEnd', reason: nil, **base_args)
  super(**base_args)
  @hook_event_name = hook_event_name
  @reason = reason
end

Instance Attribute Details

#hook_event_nameObject

Returns the value of attribute hook_event_name.



907
908
909
# File 'lib/claude_agent_sdk/types.rb', line 907

def hook_event_name
  @hook_event_name
end

#reasonObject

Returns the value of attribute reason.



907
908
909
# File 'lib/claude_agent_sdk/types.rb', line 907

def reason
  @reason
end