class LanguageServer::Protocol::Interface::PartialResultParams
Attributes
attributes[R]
Public Class Methods
new(partial_result_token: nil)
click to toggle source
# File lib/language_server/protocol/interface/partial_result_params.rb, line 5 def initialize(partial_result_token: nil) @attributes = {} @attributes[:partialResultToken] = partial_result_token if partial_result_token @attributes.freeze end
Public Instance Methods
partial_result_token()
click to toggle source
An optional token that a server can use to report partial results (e.g. streaming) to the client.
@return [ProgressToken]
# File lib/language_server/protocol/interface/partial_result_params.rb, line 18 def partial_result_token attributes.fetch(:partialResultToken) end
to_hash()
click to toggle source
# File lib/language_server/protocol/interface/partial_result_params.rb, line 24 def to_hash attributes end
to_json(*args)
click to toggle source
# File lib/language_server/protocol/interface/partial_result_params.rb, line 28 def to_json(*args) to_hash.to_json(*args) end