Class: ClaudeAgentSDK::PermissionRuleValue

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

Overview

Permission rule value

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tool_name:, rule_content: nil) ⇒ PermissionRuleValue

Returns a new instance of PermissionRuleValue.



689
690
691
692
# File 'lib/claude_agent_sdk/types.rb', line 689

def initialize(tool_name:, rule_content: nil)
  @tool_name = tool_name
  @rule_content = rule_content
end

Instance Attribute Details

#rule_contentObject

Returns the value of attribute rule_content.



687
688
689
# File 'lib/claude_agent_sdk/types.rb', line 687

def rule_content
  @rule_content
end

#tool_nameObject

Returns the value of attribute tool_name.



687
688
689
# File 'lib/claude_agent_sdk/types.rb', line 687

def tool_name
  @tool_name
end