Class: ClaudeAgentSDK::PermissionDeniedHookSpecificOutput

Inherits:
Object
  • Object
show all
Defined in:
lib/claude_agent_sdk/types.rb

Overview

PermissionDenied hook specific output

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(retry_: false) ⇒ PermissionDeniedHookSpecificOutput

Returns a new instance of PermissionDeniedHookSpecificOutput.



1301
1302
1303
1304
# File 'lib/claude_agent_sdk/types.rb', line 1301

def initialize(retry_: false)
  @hook_event_name = 'PermissionDenied'
  @retry = retry_
end

Instance Attribute Details

#hook_event_nameObject

Returns the value of attribute hook_event_name.



1299
1300
1301
# File 'lib/claude_agent_sdk/types.rb', line 1299

def hook_event_name
  @hook_event_name
end

#retryObject

Returns the value of attribute retry.



1299
1300
1301
# File 'lib/claude_agent_sdk/types.rb', line 1299

def retry
  @retry
end

Instance Method Details

#to_hObject



1306
1307
1308
1309
1310
# File 'lib/claude_agent_sdk/types.rb', line 1306

def to_h
  result = { hookEventName: @hook_event_name }
  result[:retry] = @retry unless @retry.nil?
  result
end