Class: ClaudeAgentSDK::StopHookInput
- Inherits:
-
BaseHookInput
- Object
- Type
- BaseHookInput
- ClaudeAgentSDK::StopHookInput
- Defined in:
- lib/claude_agent_sdk/types.rb
Overview
Stop hook input
Instance Attribute Summary collapse
-
#last_assistant_message ⇒ Object
Returns the value of attribute last_assistant_message.
-
#stop_hook_active ⇒ Object
Returns the value of attribute stop_hook_active.
Attributes inherited from BaseHookInput
#cwd, #hook_event_name, #permission_mode, #session_id, #transcript_path
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ StopHookInput
constructor
A new instance of StopHookInput.
Methods inherited from Type
#[], #[]=, from_hash, #to_h, wrap
Constructor Details
#initialize(attributes = {}) ⇒ StopHookInput
Returns a new instance of StopHookInput.
609 610 611 612 613 |
# File 'lib/claude_agent_sdk/types.rb', line 609 def initialize(attributes = {}) super @hook_event_name = 'Stop' @stop_hook_active = false if @stop_hook_active.nil? end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ClaudeAgentSDK::Type
Instance Attribute Details
#last_assistant_message ⇒ Object
Returns the value of attribute last_assistant_message.
607 608 609 |
# File 'lib/claude_agent_sdk/types.rb', line 607 def @last_assistant_message end |
#stop_hook_active ⇒ Object
Returns the value of attribute stop_hook_active.
607 608 609 |
# File 'lib/claude_agent_sdk/types.rb', line 607 def stop_hook_active @stop_hook_active end |