Class: ClaudeAgentSDK::McpSSEServerConfig
- Defined in:
- lib/claude_agent_sdk/types.rb
Instance Attribute Summary collapse
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ McpSSEServerConfig
constructor
A new instance of McpSSEServerConfig.
- #to_h ⇒ Object
Methods inherited from Type
Constructor Details
#initialize(attributes = {}) ⇒ McpSSEServerConfig
Returns a new instance of McpSSEServerConfig.
1495 1496 1497 1498 |
# File 'lib/claude_agent_sdk/types.rb', line 1495 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
#headers ⇒ Object
Returns the value of attribute headers.
1492 1493 1494 |
# File 'lib/claude_agent_sdk/types.rb', line 1492 def headers @headers end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
1493 1494 1495 |
# File 'lib/claude_agent_sdk/types.rb', line 1493 def type @type end |
#url ⇒ Object
Returns the value of attribute url.
1492 1493 1494 |
# File 'lib/claude_agent_sdk/types.rb', line 1492 def url @url end |
Instance Method Details
#to_h ⇒ Object
1500 1501 1502 1503 1504 |
# File 'lib/claude_agent_sdk/types.rb', line 1500 def to_h result = { type: @type, url: @url } result[:headers] = @headers if @headers result end |