class LanguageServer::Protocol::Interface::CodeDescription

Structure to capture a description for an error code.

Attributes

attributes[R]

Public Class Methods

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

  @attributes[:href] = href

  @attributes.freeze
end

Public Instance Methods

href() click to toggle source

An URI to open with more information about the diagnostic error.

@return [string]

# File lib/language_server/protocol/interface/code_description.rb, line 20
def href
  attributes.fetch(:href)
end
to_hash() click to toggle source
# File lib/language_server/protocol/interface/code_description.rb, line 26
def to_hash
  attributes
end
to_json(*args) click to toggle source
# File lib/language_server/protocol/interface/code_description.rb, line 30
def to_json(*args)
  to_hash.to_json(*args)
end