Class: 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
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ McpSdkServerConfigStatus
constructor
A new instance of McpSdkServerConfigStatus.
- #to_h ⇒ Object
Methods inherited from Type
Constructor Details
#initialize(attributes = {}) ⇒ McpSdkServerConfigStatus
Returns a new instance of McpSdkServerConfigStatus.
1140 1141 1142 1143 |
# File 'lib/claude_agent_sdk/types.rb', line 1140 def initialize(attributes = {}) super @type = 'sdk' end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ClaudeAgentSDK::Type
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
1137 1138 1139 |
# File 'lib/claude_agent_sdk/types.rb', line 1137 def name @name end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
1138 1139 1140 |
# File 'lib/claude_agent_sdk/types.rb', line 1138 def type @type end |
Instance Method Details
#to_h ⇒ Object
1145 1146 1147 |
# File 'lib/claude_agent_sdk/types.rb', line 1145 def to_h { type: @type, name: @name } end |