Class: ModelContextProtocol::Server::StreamableHttpTransport::ErrorResponse

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

#errorObject (readonly)

Returns the value of attribute error

Returns:

  • (Object)

    the current value of error



13
14
15
# File 'lib/model_context_protocol/server/streamable_http_transport.rb', line 13

def error
  @error
end

#idObject (readonly)

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



13
14
15
# File 'lib/model_context_protocol/server/streamable_http_transport.rb', line 13

def id
  @id
end

Instance Method Details

#serializedObject



14
15
16
# File 'lib/model_context_protocol/server/streamable_http_transport.rb', line 14

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