Class: ClaudeAgentSDK::McpSdkServerConfig
- Inherits:
-
Object
- Object
- ClaudeAgentSDK::McpSdkServerConfig
- Defined in:
- lib/claude_agent_sdk/types.rb
Instance Attribute Summary collapse
-
#instance ⇒ Object
Returns the value of attribute instance.
-
#name ⇒ Object
Returns the value of attribute name.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(name:, instance:) ⇒ McpSdkServerConfig
constructor
A new instance of McpSdkServerConfig.
- #to_h ⇒ Object
Constructor Details
#initialize(name:, instance:) ⇒ McpSdkServerConfig
Returns a new instance of McpSdkServerConfig.
1587 1588 1589 1590 1591 |
# File 'lib/claude_agent_sdk/types.rb', line 1587 def initialize(name:, instance:) @type = 'sdk' @name = name @instance = instance end |
Instance Attribute Details
#instance ⇒ Object
Returns the value of attribute instance.
1585 1586 1587 |
# File 'lib/claude_agent_sdk/types.rb', line 1585 def instance @instance end |
#name ⇒ Object
Returns the value of attribute name.
1585 1586 1587 |
# File 'lib/claude_agent_sdk/types.rb', line 1585 def name @name end |
#type ⇒ Object
Returns the value of attribute type.
1585 1586 1587 |
# File 'lib/claude_agent_sdk/types.rb', line 1585 def type @type end |
Instance Method Details
#to_h ⇒ Object
1593 1594 1595 |
# File 'lib/claude_agent_sdk/types.rb', line 1593 def to_h { type: @type, name: @name, instance: @instance } end |