Class: Spoom::LSP::Notification

Inherits:
Message
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/spoom/sorbet/lsp/base.rb

Overview

A notification message.

A processed notification message must not send a response back. They work like events.

Instance Attribute Summary collapse

Attributes inherited from Message

#jsonrpc

Instance Method Summary collapse

Methods inherited from Message

#as_json, #to_json

Constructor Details

#initialize(method, params) ⇒ Notification

Returns a new instance of Notification.



74
75
76
77
78
# File 'lib/spoom/sorbet/lsp/base.rb', line 74

def initialize(method, params)
  super()
  @method = method
  @params = params
end

Instance Attribute Details

#methodObject (readonly)

Returns the value of attribute method.



68
69
70
# File 'lib/spoom/sorbet/lsp/base.rb', line 68

def method
  @method
end

#paramsObject (readonly)

Returns the value of attribute params.



71
72
73
# File 'lib/spoom/sorbet/lsp/base.rb', line 71

def params
  @params
end