Class: ClaudeAgentSDK::PermissionDeniedHookInput
- Inherits:
-
BaseHookInput
- Object
- Type
- BaseHookInput
- ClaudeAgentSDK::PermissionDeniedHookInput
- Defined in:
- lib/claude_agent_sdk/types.rb
Overview
PermissionDenied hook input
Instance Attribute Summary collapse
-
#agent_id ⇒ Object
Returns the value of attribute agent_id.
-
#agent_type ⇒ Object
Returns the value of attribute agent_type.
-
#reason ⇒ Object
Returns the value of attribute reason.
-
#tool_input ⇒ Object
Returns the value of attribute tool_input.
-
#tool_name ⇒ Object
Returns the value of attribute tool_name.
-
#tool_use_id ⇒ Object
Returns the value of attribute tool_use_id.
Attributes inherited from BaseHookInput
#cwd, #hook_event_name, #permission_mode, #session_id, #transcript_path
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ PermissionDeniedHookInput
constructor
A new instance of PermissionDeniedHookInput.
Methods inherited from Type
#[], #[]=, from_hash, #to_h, wrap
Constructor Details
#initialize(attributes = {}) ⇒ PermissionDeniedHookInput
Returns a new instance of PermissionDeniedHookInput.
783 784 785 786 |
# File 'lib/claude_agent_sdk/types.rb', line 783 def initialize(attributes = {}) super @hook_event_name = 'PermissionDenied' end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ClaudeAgentSDK::Type
Instance Attribute Details
#agent_id ⇒ Object
Returns the value of attribute agent_id.
781 782 783 |
# File 'lib/claude_agent_sdk/types.rb', line 781 def agent_id @agent_id end |
#agent_type ⇒ Object
Returns the value of attribute agent_type.
781 782 783 |
# File 'lib/claude_agent_sdk/types.rb', line 781 def agent_type @agent_type end |
#reason ⇒ Object
Returns the value of attribute reason.
781 782 783 |
# File 'lib/claude_agent_sdk/types.rb', line 781 def reason @reason end |
#tool_input ⇒ Object
Returns the value of attribute tool_input.
781 782 783 |
# File 'lib/claude_agent_sdk/types.rb', line 781 def tool_input @tool_input end |
#tool_name ⇒ Object
Returns the value of attribute tool_name.
781 782 783 |
# File 'lib/claude_agent_sdk/types.rb', line 781 def tool_name @tool_name end |
#tool_use_id ⇒ Object
Returns the value of attribute tool_use_id.
781 782 783 |
# File 'lib/claude_agent_sdk/types.rb', line 781 def tool_use_id @tool_use_id end |