Class: ClaudeAgentSDK::SandboxIgnoreViolations

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

Overview

Sandbox ignore violations configuration

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file: nil, network: nil) ⇒ SandboxIgnoreViolations

Returns a new instance of SandboxIgnoreViolations.



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

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

#fileObject

Returns the value of attribute file.



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

def file
  @file
end

#networkObject

Returns the value of attribute network.



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

def network
  @network
end

Instance Method Details

#to_hObject



695
696
697
698
699
700
# File 'lib/claude_agent_sdk/types.rb', line 695

def to_h
  result = {}
  result[:file] = @file if @file
  result[:network] = @network if @network
  result
end