Class: ModelContextProtocol::Server::StreamableHttpTransport::Response
- Inherits:
-
Data
- Object
- Data
- ModelContextProtocol::Server::StreamableHttpTransport::Response
- Defined in:
- lib/model_context_protocol/server/streamable_http_transport.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id
7 8 9 |
# File 'lib/model_context_protocol/server/streamable_http_transport.rb', line 7 def id @id end |
#result ⇒ Object (readonly)
Returns the value of attribute result
7 8 9 |
# File 'lib/model_context_protocol/server/streamable_http_transport.rb', line 7 def result @result end |
Instance Method Details
#serialized ⇒ Object
8 9 10 |
# File 'lib/model_context_protocol/server/streamable_http_transport.rb', line 8 def serialized {jsonrpc: "2.0", id:, result:} end |