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.
1428 1429 1430 1431 |
# File 'lib/claude_agent_sdk/types.rb', line 1428 def initialize(type: 'sdk', name:) @type = type @name = name end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
1426 1427 1428 |
# File 'lib/claude_agent_sdk/types.rb', line 1426 def name @name end |
#type ⇒ Object
Returns the value of attribute type.
1426 1427 1428 |
# File 'lib/claude_agent_sdk/types.rb', line 1426 def type @type end |
Instance Method Details
#to_h ⇒ Object
1433 1434 1435 |
# File 'lib/claude_agent_sdk/types.rb', line 1433 def to_h { type: @type, name: @name } end |