Class: ClaudeAgentSDK::SdkPluginConfig

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

Overview

SDK Plugin configuration

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Type

#[], #[]=, from_hash, wrap

Constructor Details

#initialize(attributes = {}) ⇒ SdkPluginConfig

Returns a new instance of SdkPluginConfig.



1367
1368
1369
1370
# File 'lib/claude_agent_sdk/types.rb', line 1367

def initialize(attributes = {})
  super
  @type = 'local'
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ClaudeAgentSDK::Type

Instance Attribute Details

#pathObject

Returns the value of attribute path.



1364
1365
1366
# File 'lib/claude_agent_sdk/types.rb', line 1364

def path
  @path
end

#typeObject (readonly)

Returns the value of attribute type.



1365
1366
1367
# File 'lib/claude_agent_sdk/types.rb', line 1365

def type
  @type
end

Instance Method Details

#to_hObject



1372
1373
1374
# File 'lib/claude_agent_sdk/types.rb', line 1372

def to_h
  { type: @type, path: @path }
end