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.



580
581
582
583
584
585
# File 'lib/claude_agent_sdk/types.rb', line 580

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.



578
579
580
# File 'lib/claude_agent_sdk/types.rb', line 578

def behavior
  @behavior
end

#interruptObject

Returns the value of attribute interrupt.



577
578
579
# File 'lib/claude_agent_sdk/types.rb', line 577

def interrupt
  @interrupt
end

#messageObject

Returns the value of attribute message.



577
578
579
# File 'lib/claude_agent_sdk/types.rb', line 577

def message
  @message
end