Class: ClaudeAgentSDK::SdkPluginConfig

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

Overview

SDK Plugin configuration

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path:) ⇒ SdkPluginConfig

Returns a new instance of SdkPluginConfig.



655
656
657
658
# File 'lib/claude_agent_sdk/types.rb', line 655

def initialize(path:)
  @type = 'plugin'
  @path = path
end

Instance Attribute Details

#pathObject

Returns the value of attribute path.



653
654
655
# File 'lib/claude_agent_sdk/types.rb', line 653

def path
  @path
end

#typeObject

Returns the value of attribute type.



653
654
655
# File 'lib/claude_agent_sdk/types.rb', line 653

def type
  @type
end

Instance Method Details

#to_hObject



660
661
662
# File 'lib/claude_agent_sdk/types.rb', line 660

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