Class: ClaudeAgentSDK::PermissionDeniedHookSpecificOutput
- Inherits:
-
Object
- Object
- ClaudeAgentSDK::PermissionDeniedHookSpecificOutput
- Defined in:
- lib/claude_agent_sdk/types.rb
Overview
PermissionDenied hook specific output
Instance Attribute Summary collapse
-
#hook_event_name ⇒ Object
Returns the value of attribute hook_event_name.
-
#retry ⇒ Object
Returns the value of attribute retry.
Instance Method Summary collapse
-
#initialize(retry_: false) ⇒ PermissionDeniedHookSpecificOutput
constructor
A new instance of PermissionDeniedHookSpecificOutput.
- #to_h ⇒ Object
Constructor Details
#initialize(retry_: false) ⇒ PermissionDeniedHookSpecificOutput
Returns a new instance of PermissionDeniedHookSpecificOutput.
1280 1281 1282 1283 |
# File 'lib/claude_agent_sdk/types.rb', line 1280 def initialize(retry_: false) @hook_event_name = 'PermissionDenied' @retry = retry_ end |
Instance Attribute Details
#hook_event_name ⇒ Object
Returns the value of attribute hook_event_name.
1278 1279 1280 |
# File 'lib/claude_agent_sdk/types.rb', line 1278 def hook_event_name @hook_event_name end |
#retry ⇒ Object
Returns the value of attribute retry.
1278 1279 1280 |
# File 'lib/claude_agent_sdk/types.rb', line 1278 def retry @retry end |
Instance Method Details
#to_h ⇒ Object
1285 1286 1287 1288 1289 |
# File 'lib/claude_agent_sdk/types.rb', line 1285 def to_h result = { hookEventName: @hook_event_name } result[:retry] = @retry unless @retry.nil? result end |