Class: ClaudeAgentSDK::McpSdkServerConfig

Inherits:
Type
  • Object
show all
Defined in:
lib/claude_agent_sdk/types.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Type

#[], #[]=, from_hash, wrap

Constructor Details

#initialize(attributes = {}) ⇒ McpSdkServerConfig

Returns a new instance of McpSdkServerConfig.



1527
1528
1529
1530
# File 'lib/claude_agent_sdk/types.rb', line 1527

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

#instanceObject

Returns the value of attribute instance.



1524
1525
1526
# File 'lib/claude_agent_sdk/types.rb', line 1524

def instance
  @instance
end

#nameObject

Returns the value of attribute name.



1524
1525
1526
# File 'lib/claude_agent_sdk/types.rb', line 1524

def name
  @name
end

#typeObject (readonly)

Returns the value of attribute type.



1525
1526
1527
# File 'lib/claude_agent_sdk/types.rb', line 1525

def type
  @type
end

Instance Method Details

#to_hObject



1532
1533
1534
# File 'lib/claude_agent_sdk/types.rb', line 1532

def to_h
  { type: @type, name: @name, instance: @instance }
end