Class: ClaudeAgentSDK::McpSdkServerConfigStatus
- Inherits:
-
Object
- Object
- ClaudeAgentSDK::McpSdkServerConfigStatus
- Defined in:
- lib/claude_agent_sdk/types.rb
Overview
Output-only serializable version of McpSdkServerConfig (without live instance) Returned in MCP status responses
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type: 'sdk', name:) ⇒ McpSdkServerConfigStatus
constructor
A new instance of McpSdkServerConfigStatus.
- #to_h ⇒ Object
Constructor Details
#initialize(type: 'sdk', name:) ⇒ McpSdkServerConfigStatus
Returns a new instance of McpSdkServerConfigStatus.
1479 1480 1481 1482 |
# File 'lib/claude_agent_sdk/types.rb', line 1479 def initialize(type: 'sdk', name:) @type = type @name = name end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
1477 1478 1479 |
# File 'lib/claude_agent_sdk/types.rb', line 1477 def name @name end |
#type ⇒ Object
Returns the value of attribute type.
1477 1478 1479 |
# File 'lib/claude_agent_sdk/types.rb', line 1477 def type @type end |
Instance Method Details
#to_h ⇒ Object
1484 1485 1486 |
# File 'lib/claude_agent_sdk/types.rb', line 1484 def to_h { type: @type, name: @name } end |