Class: ModelContextProtocol::Server::StdioTransport::Response
- Inherits:
-
Data
- Object
- Data
- ModelContextProtocol::Server::StdioTransport::Response
- Defined in:
- lib/model_context_protocol/server/stdio_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
3 4 5 |
# File 'lib/model_context_protocol/server/stdio_transport.rb', line 3 def id @id end |
#result ⇒ Object (readonly)
Returns the value of attribute result
3 4 5 |
# File 'lib/model_context_protocol/server/stdio_transport.rb', line 3 def result @result end |
Instance Method Details
#serialized ⇒ Object
4 5 6 |
# File 'lib/model_context_protocol/server/stdio_transport.rb', line 4 def serialized {jsonrpc: "2.0", id:, result:} end |