Class: ClaudeCode::McpHttpServerConfig
- Inherits:
-
Object
- Object
- ClaudeCode::McpHttpServerConfig
- 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: {}) ⇒ McpHttpServerConfig
constructor
A new instance of McpHttpServerConfig.
- #to_h ⇒ Object
Constructor Details
#initialize(url:, headers: {}) ⇒ McpHttpServerConfig
Returns a new instance of McpHttpServerConfig.
126 127 128 129 130 |
# File 'lib/claude_code/types.rb', line 126 def initialize(url:, headers: {}) @url = url @headers = headers @type = 'http' end |
Instance Attribute Details
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
124 125 126 |
# File 'lib/claude_code/types.rb', line 124 def headers @headers end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
124 125 126 |
# File 'lib/claude_code/types.rb', line 124 def type @type end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
124 125 126 |
# File 'lib/claude_code/types.rb', line 124 def url @url end |
Instance Method Details
#to_h ⇒ Object
132 133 134 135 136 137 138 |
# File 'lib/claude_code/types.rb', line 132 def to_h { type: @type, url: @url, headers: @headers } end |