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:) ⇒ SdkPluginConfig
constructor
A new instance of SdkPluginConfig.
- #to_h ⇒ Object
Constructor Details
#initialize(path:) ⇒ SdkPluginConfig
Returns a new instance of SdkPluginConfig.
646 647 648 649 |
# File 'lib/claude_agent_sdk/types.rb', line 646 def initialize(path:) @type = 'plugin' @path = path end |
Instance Attribute Details
#path ⇒ Object
Returns the value of attribute path.
644 645 646 |
# File 'lib/claude_agent_sdk/types.rb', line 644 def path @path end |
#type ⇒ Object
Returns the value of attribute type.
644 645 646 |
# File 'lib/claude_agent_sdk/types.rb', line 644 def type @type end |
Instance Method Details
#to_h ⇒ Object
651 652 653 |
# File 'lib/claude_agent_sdk/types.rb', line 651 def to_h { type: @type, path: @path } end |