Class: ClaudeCode::McpSSEServerConfig
- Inherits:
-
Object
- Object
- ClaudeCode::McpSSEServerConfig
- Defined in:
- lib/claude_code/types.rb
Instance Attribute Summary collapse
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url:, headers: {}) ⇒ McpSSEServerConfig
constructor
A new instance of McpSSEServerConfig.
- #to_h ⇒ Object
Constructor Details
#initialize(url:, headers: {}) ⇒ McpSSEServerConfig
Returns a new instance of McpSSEServerConfig.
108 109 110 111 112 |
# File 'lib/claude_code/types.rb', line 108 def initialize(url:, headers: {}) @url = url @headers = headers @type = 'sse' end |
Instance Attribute Details
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
106 107 108 |
# File 'lib/claude_code/types.rb', line 106 def headers @headers end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
106 107 108 |
# File 'lib/claude_code/types.rb', line 106 def type @type end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
106 107 108 |
# File 'lib/claude_code/types.rb', line 106 def url @url end |
Instance Method Details
#to_h ⇒ Object
114 115 116 117 118 119 120 |
# File 'lib/claude_code/types.rb', line 114 def to_h { type: @type, url: @url, headers: @headers } end |