Class: ClaudeCodeSDK::Configuration
- Inherits:
-
Object
- Object
- ClaudeCodeSDK::Configuration
- Includes:
- Singleton
- Defined in:
- lib/claude_code_sdk/configuration.rb
Instance Attribute Summary collapse
-
#cli_path ⇒ Object
Returns the value of attribute cli_path.
-
#default_cwd ⇒ Object
Returns the value of attribute default_cwd.
-
#default_permission_mode ⇒ Object
Returns the value of attribute default_permission_mode.
-
#default_system_prompt ⇒ Object
Returns the value of attribute default_system_prompt.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #to_options ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
12 13 14 15 16 17 |
# File 'lib/claude_code_sdk/configuration.rb', line 12 def initialize @default_system_prompt = nil @default_cwd = nil = PermissionMode::DEFAULT @cli_path = nil end |
Instance Attribute Details
#cli_path ⇒ Object
Returns the value of attribute cli_path.
9 10 11 |
# File 'lib/claude_code_sdk/configuration.rb', line 9 def cli_path @cli_path end |
#default_cwd ⇒ Object
Returns the value of attribute default_cwd.
9 10 11 |
# File 'lib/claude_code_sdk/configuration.rb', line 9 def default_cwd @default_cwd end |
#default_permission_mode ⇒ Object
Returns the value of attribute default_permission_mode.
9 10 11 |
# File 'lib/claude_code_sdk/configuration.rb', line 9 def end |
#default_system_prompt ⇒ Object
Returns the value of attribute default_system_prompt.
9 10 11 |
# File 'lib/claude_code_sdk/configuration.rb', line 9 def default_system_prompt @default_system_prompt end |
Instance Method Details
#to_options ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/claude_code_sdk/configuration.rb', line 19 def Options.new( system_prompt: default_system_prompt, cwd: default_cwd, permission_mode: ) end |