Class: ClaudeAgentSDK::SandboxFilesystemConfig
- Defined in:
- lib/claude_agent_sdk/types.rb
Overview
Sandbox filesystem configuration
Instance Attribute Summary collapse
-
#allow_managed_read_paths_only ⇒ Object
Returns the value of attribute allow_managed_read_paths_only.
-
#allow_read ⇒ Object
Returns the value of attribute allow_read.
-
#allow_write ⇒ Object
Returns the value of attribute allow_write.
-
#deny_read ⇒ Object
Returns the value of attribute deny_read.
-
#deny_write ⇒ Object
Returns the value of attribute deny_write.
Instance Method Summary collapse
Methods inherited from Type
#[], #[]=, from_hash, #initialize, wrap
Constructor Details
This class inherits a constructor from ClaudeAgentSDK::Type
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ClaudeAgentSDK::Type
Instance Attribute Details
#allow_managed_read_paths_only ⇒ Object
Returns the value of attribute allow_managed_read_paths_only.
1325 1326 1327 |
# File 'lib/claude_agent_sdk/types.rb', line 1325 def allow_managed_read_paths_only @allow_managed_read_paths_only end |
#allow_read ⇒ Object
Returns the value of attribute allow_read.
1325 1326 1327 |
# File 'lib/claude_agent_sdk/types.rb', line 1325 def allow_read @allow_read end |
#allow_write ⇒ Object
Returns the value of attribute allow_write.
1325 1326 1327 |
# File 'lib/claude_agent_sdk/types.rb', line 1325 def allow_write @allow_write end |
#deny_read ⇒ Object
Returns the value of attribute deny_read.
1325 1326 1327 |
# File 'lib/claude_agent_sdk/types.rb', line 1325 def deny_read @deny_read end |
#deny_write ⇒ Object
Returns the value of attribute deny_write.
1325 1326 1327 |
# File 'lib/claude_agent_sdk/types.rb', line 1325 def deny_write @deny_write end |
Instance Method Details
#to_h ⇒ Object
1327 1328 1329 1330 1331 1332 1333 1334 1335 |
# File 'lib/claude_agent_sdk/types.rb', line 1327 def to_h result = {} result[:allowWrite] = @allow_write if @allow_write result[:denyWrite] = @deny_write if @deny_write result[:denyRead] = @deny_read if @deny_read result[:allowRead] = @allow_read if @allow_read result[:allowManagedReadPathsOnly] = @allow_managed_read_paths_only unless @allow_managed_read_paths_only.nil? result end |