Class: ModelContextProtocol::Server::StdioTransport::Response

Inherits:
Data
  • Object
show all
Defined in:
lib/model_context_protocol/server/stdio_transport.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



3
4
5
# File 'lib/model_context_protocol/server/stdio_transport.rb', line 3

def id
  @id
end

#resultObject (readonly)

Returns the value of attribute result

Returns:

  • (Object)

    the current value of result



3
4
5
# File 'lib/model_context_protocol/server/stdio_transport.rb', line 3

def result
  @result
end

Instance Method Details

#serializedObject



4
5
6
# File 'lib/model_context_protocol/server/stdio_transport.rb', line 4

def serialized
  {jsonrpc: "2.0", id:, result:}
end