class LanguageServer::Protocol::Interface::WorkDoneProgressCreateParams

Attributes

attributes[R]

Public Class Methods

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

  @attributes[:token] = token

  @attributes.freeze
end

Public Instance Methods

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

The token to be used to report progress.

@return [ProgressToken]

# File lib/language_server/protocol/interface/work_done_progress_create_params.rb, line 17
def token
  attributes.fetch(:token)
end