Class: ClaudeAgentSDK::UserPromptSubmitHookInput
- Inherits:
-
BaseHookInput
- Object
- Type
- BaseHookInput
- ClaudeAgentSDK::UserPromptSubmitHookInput
- Defined in:
- lib/claude_agent_sdk/types.rb
Overview
UserPromptSubmit hook input
Instance Attribute Summary collapse
-
#prompt ⇒ Object
Returns the value of attribute prompt.
Attributes inherited from BaseHookInput
#cwd, #hook_event_name, #permission_mode, #session_id, #transcript_path
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ UserPromptSubmitHookInput
constructor
A new instance of UserPromptSubmitHookInput.
Methods inherited from Type
#[], #[]=, from_hash, #to_h, wrap
Constructor Details
#initialize(attributes = {}) ⇒ UserPromptSubmitHookInput
Returns a new instance of UserPromptSubmitHookInput.
599 600 601 602 |
# File 'lib/claude_agent_sdk/types.rb', line 599 def initialize(attributes = {}) super @hook_event_name = 'UserPromptSubmit' end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ClaudeAgentSDK::Type
Instance Attribute Details
#prompt ⇒ Object
Returns the value of attribute prompt.
597 598 599 |
# File 'lib/claude_agent_sdk/types.rb', line 597 def prompt @prompt end |