Class: ClaudeAgentSDK::PermissionResultDeny

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Type

#[], #[]=, from_hash, #to_h, wrap

Constructor Details

#initialize(attributes = {}) ⇒ PermissionResultDeny

Returns a new instance of PermissionResultDeny.



546
547
548
549
550
551
# File 'lib/claude_agent_sdk/types.rb', line 546

def initialize(attributes = {})
  super
  @behavior = 'deny'
  @message ||= ''
  @interrupt = false if @interrupt.nil?
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ClaudeAgentSDK::Type

Instance Attribute Details

#behaviorObject (readonly)

Returns the value of attribute behavior.



544
545
546
# File 'lib/claude_agent_sdk/types.rb', line 544

def behavior
  @behavior
end

#interruptObject

Returns the value of attribute interrupt.



543
544
545
# File 'lib/claude_agent_sdk/types.rb', line 543

def interrupt
  @interrupt
end

#messageObject

Returns the value of attribute message.



543
544
545
# File 'lib/claude_agent_sdk/types.rb', line 543

def message
  @message
end