Class: 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
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ McpSdkServerConfig
constructor
A new instance of McpSdkServerConfig.
- #to_h ⇒ Object
Methods inherited from Type
Constructor Details
#initialize(attributes = {}) ⇒ McpSdkServerConfig
Returns a new instance of McpSdkServerConfig.
1320 1321 1322 1323 |
# File 'lib/claude_agent_sdk/types.rb', line 1320 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
#instance ⇒ Object
Returns the value of attribute instance.
1317 1318 1319 |
# File 'lib/claude_agent_sdk/types.rb', line 1317 def instance @instance end |
#name ⇒ Object
Returns the value of attribute name.
1317 1318 1319 |
# File 'lib/claude_agent_sdk/types.rb', line 1317 def name @name end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
1318 1319 1320 |
# File 'lib/claude_agent_sdk/types.rb', line 1318 def type @type end |
Instance Method Details
#to_h ⇒ Object
1325 1326 1327 |
# File 'lib/claude_agent_sdk/types.rb', line 1325 def to_h { type: @type, name: @name, instance: @instance } end |