Class: ClaudeAgentSDK::SessionEndHookInput
- Inherits:
-
BaseHookInput
- Object
- BaseHookInput
- ClaudeAgentSDK::SessionEndHookInput
- Defined in:
- lib/claude_agent_sdk/types.rb
Overview
SessionEnd hook input
Instance Attribute Summary collapse
-
#hook_event_name ⇒ Object
Returns the value of attribute hook_event_name.
-
#reason ⇒ Object
Returns the value of attribute reason.
Attributes inherited from BaseHookInput
#cwd, #permission_mode, #session_id, #transcript_path
Instance Method Summary collapse
-
#initialize(hook_event_name: 'SessionEnd', reason: nil, **base_args) ⇒ SessionEndHookInput
constructor
A new instance of SessionEndHookInput.
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_name ⇒ Object
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 |
#reason ⇒ Object
Returns the value of attribute reason.
907 908 909 |
# File 'lib/claude_agent_sdk/types.rb', line 907 def reason @reason end |