Class: ModelContextProtocol::Server::StreamableHttpTransport::Response

Inherits:
Data
  • Object
show all
Defined in:
lib/model_context_protocol/server/streamable_http_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



7
8
9
# File 'lib/model_context_protocol/server/streamable_http_transport.rb', line 7

def id
  @id
end

#resultObject (readonly)

Returns the value of attribute result

Returns:

  • (Object)

    the current value of result



7
8
9
# File 'lib/model_context_protocol/server/streamable_http_transport.rb', line 7

def result
  @result
end

Instance Method Details

#serializedObject



8
9
10
# File 'lib/model_context_protocol/server/streamable_http_transport.rb', line 8

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