Class: ClaudeAgentSDK::SdkPluginConfig
- Inherits:
-
Object
- Object
- ClaudeAgentSDK::SdkPluginConfig
- Defined in:
- lib/claude_agent_sdk/types.rb
Overview
SDK Plugin configuration
Instance Attribute Summary collapse
-
#path ⇒ Object
Returns the value of attribute path.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(path:, type: 'local') ⇒ SdkPluginConfig
constructor
A new instance of SdkPluginConfig.
- #to_h ⇒ Object
Constructor Details
#initialize(path:, type: 'local') ⇒ SdkPluginConfig
Returns a new instance of SdkPluginConfig.
1581 1582 1583 1584 1585 1586 |
# File 'lib/claude_agent_sdk/types.rb', line 1581 def initialize(path:, type: 'local') raise ArgumentError, "unsupported plugin type: #{type}" unless %w[local plugin].include?(type) @type = 'local' @path = path end |
Instance Attribute Details
#path ⇒ Object
Returns the value of attribute path.
1579 1580 1581 |
# File 'lib/claude_agent_sdk/types.rb', line 1579 def path @path end |
#type ⇒ Object
Returns the value of attribute type.
1579 1580 1581 |
# File 'lib/claude_agent_sdk/types.rb', line 1579 def type @type end |
Instance Method Details
#to_h ⇒ Object
1588 1589 1590 |
# File 'lib/claude_agent_sdk/types.rb', line 1588 def to_h { type: @type, path: @path } end |