Class: ClaudeAgentSDK::PermissionResultAllow

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

Overview

Permission results

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Type

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

Constructor Details

#initialize(attributes = {}) ⇒ PermissionResultAllow

Returns a new instance of PermissionResultAllow.



761
762
763
764
# File 'lib/claude_agent_sdk/types.rb', line 761

def initialize(attributes = {})
  super
  @behavior = 'allow'
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.



759
760
761
# File 'lib/claude_agent_sdk/types.rb', line 759

def behavior
  @behavior
end

#updated_inputObject

Returns the value of attribute updated_input.



758
759
760
# File 'lib/claude_agent_sdk/types.rb', line 758

def updated_input
  @updated_input
end

#updated_permissionsObject

Returns the value of attribute updated_permissions.



758
759
760
# File 'lib/claude_agent_sdk/types.rb', line 758

def updated_permissions
  @updated_permissions
end