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.



737
738
739
740
# File 'lib/claude_agent_sdk/types.rb', line 737

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.



735
736
737
# File 'lib/claude_agent_sdk/types.rb', line 735

def file
  @file
end

#networkObject

Returns the value of attribute network.



735
736
737
# File 'lib/claude_agent_sdk/types.rb', line 735

def network
  @network
end

Instance Method Details

#to_hObject



742
743
744
745
746
747
# File 'lib/claude_agent_sdk/types.rb', line 742

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