class LanguageServer::Protocol::Interface::ProgressParams

Attributes

attributes[R]

Public Class Methods

new(token:, value:) click to toggle source
# File lib/language_server/protocol/interface/progress_params.rb, line 5
def initialize(token:, value:)
  @attributes = {}

  @attributes[:token] = token
  @attributes[:value] = value

  @attributes.freeze
end

Public Instance Methods

to_hash() click to toggle source
# File lib/language_server/protocol/interface/progress_params.rb, line 32
def to_hash
  attributes
end
to_json(*args) click to toggle source
# File lib/language_server/protocol/interface/progress_params.rb, line 36
def to_json(*args)
  to_hash.to_json(*args)
end
token() click to toggle source

The progress token provided by the client or server.

@return [ProgressToken]

# File lib/language_server/protocol/interface/progress_params.rb, line 18
def token
  attributes.fetch(:token)
end
value() click to toggle source

The progress data.

@return [T]

# File lib/language_server/protocol/interface/progress_params.rb, line 26
def value
  attributes.fetch(:value)
end