Class: ClaudeAgentSDK::McpSSEServerConfig
- Inherits:
-
Object
- Object
- ClaudeAgentSDK::McpSSEServerConfig
- Defined in:
- lib/claude_agent_sdk/types.rb
Instance Attribute Summary collapse
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#type ⇒ Object
Returns the value of attribute type.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url:, headers: nil) ⇒ McpSSEServerConfig
constructor
A new instance of McpSSEServerConfig.
- #to_h ⇒ Object
Constructor Details
#initialize(url:, headers: nil) ⇒ McpSSEServerConfig
Returns a new instance of McpSSEServerConfig.
646 647 648 649 650 |
# File 'lib/claude_agent_sdk/types.rb', line 646 def initialize(url:, headers: nil) @type = 'sse' @url = url @headers = headers end |
Instance Attribute Details
#headers ⇒ Object
Returns the value of attribute headers.
644 645 646 |
# File 'lib/claude_agent_sdk/types.rb', line 644 def headers @headers end |
#type ⇒ Object
Returns the value of attribute type.
644 645 646 |
# File 'lib/claude_agent_sdk/types.rb', line 644 def type @type end |
#url ⇒ Object
Returns the value of attribute url.
644 645 646 |
# File 'lib/claude_agent_sdk/types.rb', line 644 def url @url end |
Instance Method Details
#to_h ⇒ Object
652 653 654 655 656 |
# File 'lib/claude_agent_sdk/types.rb', line 652 def to_h result = { type: @type, url: @url } result[:headers] = @headers if @headers result end |