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.



596
597
598
599
600
601
# File 'lib/claude_agent_sdk/types.rb', line 596

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.



594
595
596
# File 'lib/claude_agent_sdk/types.rb', line 594

def behavior
  @behavior
end

#interruptObject

Returns the value of attribute interrupt.



593
594
595
# File 'lib/claude_agent_sdk/types.rb', line 593

def interrupt
  @interrupt
end

#messageObject

Returns the value of attribute message.



593
594
595
# File 'lib/claude_agent_sdk/types.rb', line 593

def message
  @message
end