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.



163
164
165
166
# File 'lib/claude_agent_sdk/types.rb', line 163

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.



161
162
163
# File 'lib/claude_agent_sdk/types.rb', line 161

def rule_content
  @rule_content
end

#tool_nameObject

Returns the value of attribute tool_name.



161
162
163
# File 'lib/claude_agent_sdk/types.rb', line 161

def tool_name
  @tool_name
end