Class: ClaudeAgentSDK::SandboxIgnoreViolations
- Inherits:
-
Object
- Object
- ClaudeAgentSDK::SandboxIgnoreViolations
- Defined in:
- lib/claude_agent_sdk/types.rb
Overview
Sandbox ignore violations configuration
Instance Attribute Summary collapse
-
#file ⇒ Object
Returns the value of attribute file.
-
#network ⇒ Object
Returns the value of attribute network.
Instance Method Summary collapse
-
#initialize(file: nil, network: nil) ⇒ SandboxIgnoreViolations
constructor
A new instance of SandboxIgnoreViolations.
- #to_h ⇒ Object
Constructor Details
#initialize(file: nil, network: nil) ⇒ SandboxIgnoreViolations
Returns a new instance of SandboxIgnoreViolations.
699 700 701 702 |
# File 'lib/claude_agent_sdk/types.rb', line 699 def initialize(file: nil, network: nil) @file = file # Array of file paths to ignore @network = network # Array of network patterns to ignore end |
Instance Attribute Details
#file ⇒ Object
Returns the value of attribute file.
697 698 699 |
# File 'lib/claude_agent_sdk/types.rb', line 697 def file @file end |
#network ⇒ Object
Returns the value of attribute network.
697 698 699 |
# File 'lib/claude_agent_sdk/types.rb', line 697 def network @network end |
Instance Method Details
#to_h ⇒ Object
704 705 706 707 708 709 |
# File 'lib/claude_agent_sdk/types.rb', line 704 def to_h result = {} result[:file] = @file if @file result[:network] = @network if @network result end |