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.
1449 1450 1451 1452 |
# File 'lib/claude_agent_sdk/types.rb', line 1449 def initialize(type: 'sdk', name:) @type = type @name = name end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
1447 1448 1449 |
# File 'lib/claude_agent_sdk/types.rb', line 1447 def name @name end |
#type ⇒ Object
Returns the value of attribute type.
1447 1448 1449 |
# File 'lib/claude_agent_sdk/types.rb', line 1447 def type @type end |
Instance Method Details
#to_h ⇒ Object
1454 1455 1456 |
# File 'lib/claude_agent_sdk/types.rb', line 1454 def to_h { type: @type, name: @name } end |