Class: ClaudeAgentSDK::McpSSEServerConfig

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 = {}) ⇒ McpSSEServerConfig

Returns a new instance of McpSSEServerConfig.



1384
1385
1386
1387
# File 'lib/claude_agent_sdk/types.rb', line 1384

def initialize(attributes = {})
  super
  @type = 'sse'
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ClaudeAgentSDK::Type

Instance Attribute Details

#headersObject

Returns the value of attribute headers.



1381
1382
1383
# File 'lib/claude_agent_sdk/types.rb', line 1381

def headers
  @headers
end

#typeObject (readonly)

Returns the value of attribute type.



1382
1383
1384
# File 'lib/claude_agent_sdk/types.rb', line 1382

def type
  @type
end

#urlObject

Returns the value of attribute url.



1381
1382
1383
# File 'lib/claude_agent_sdk/types.rb', line 1381

def url
  @url
end

Instance Method Details

#to_hObject



1389
1390
1391
1392
1393
# File 'lib/claude_agent_sdk/types.rb', line 1389

def to_h
  result = { type: @type, url: @url }
  result[:headers] = @headers if @headers
  result
end