class LanguageServer::Protocol::Interface::CancelParams

Attributes

attributes[R]

Public Class Methods

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

  @attributes[:id] = id

  @attributes.freeze
end

Public Instance Methods

id() click to toggle source

The request id to cancel.

@return [string | number]

# File lib/language_server/protocol/interface/cancel_params.rb, line 17
def id
  attributes.fetch(:id)
end
to_hash() click to toggle source
# File lib/language_server/protocol/interface/cancel_params.rb, line 23
def to_hash
  attributes
end
to_json(*args) click to toggle source
# File lib/language_server/protocol/interface/cancel_params.rb, line 27
def to_json(*args)
  to_hash.to_json(*args)
end