Class: ClaudeAgentSDK::McpHttpServerConfig
- 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 = {}) ⇒ McpHttpServerConfig
constructor
A new instance of McpHttpServerConfig.
- #to_h ⇒ Object
Methods inherited from Type
Constructor Details
#initialize(attributes = {}) ⇒ McpHttpServerConfig
Returns a new instance of McpHttpServerConfig.
1511 1512 1513 1514 |
# File 'lib/claude_agent_sdk/types.rb', line 1511 def initialize(attributes = {}) super @type = 'http' 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.
1508 1509 1510 |
# File 'lib/claude_agent_sdk/types.rb', line 1508 def headers @headers end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
1509 1510 1511 |
# File 'lib/claude_agent_sdk/types.rb', line 1509 def type @type end |
#url ⇒ Object
Returns the value of attribute url.
1508 1509 1510 |
# File 'lib/claude_agent_sdk/types.rb', line 1508 def url @url end |
Instance Method Details
#to_h ⇒ Object
1516 1517 1518 1519 1520 |
# File 'lib/claude_agent_sdk/types.rb', line 1516 def to_h result = { type: @type, url: @url } result[:headers] = @headers if @headers result end |