Class: LSP::Unregistration

Inherits:
LSPBase
  • Object
show all
Defined in:
lib/lsp/lsp_protocol.rb

Overview

export interface Unregistration { /** * The id used to unregister the request or notification. Usually an id * provided during the register request. / id: string; /* * The method to unregister for. */ method: string; }

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LSPBase

#initialize, #to_h, #to_json

Constructor Details

This class inherits a constructor from LSP::LSPBase

Instance Attribute Details

#idObject

type: string # type: string



68
69
70
# File 'lib/lsp/lsp_protocol.rb', line 68

def id
  @id
end

#method__lspObject

type: string # type: string



68
69
70
# File 'lib/lsp/lsp_protocol.rb', line 68

def method__lsp
  @method__lsp
end

Instance Method Details

#from_h!(value) ⇒ Object



70
71
72
73
74
75
# File 'lib/lsp/lsp_protocol.rb', line 70

def from_h!(value)
  value = {} if value.nil?
  self.id = value['id']
  self.method__lsp = value['method']
  self
end