Class: Spoom::LSP::Request

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

Overview

A request message to describe a request between the client and the server.

Every processed request must send a response back to the sender of the request.

Instance Attribute Summary collapse

Attributes inherited from Message

#jsonrpc

Instance Method Summary collapse

Methods inherited from Message

#as_json, #to_json

Constructor Details

#initialize(id, method, params) ⇒ Request

Returns a new instance of Request.



53
54
55
56
57
58
# File 'lib/spoom/sorbet/lsp/base.rb', line 53

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

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



44
45
46
# File 'lib/spoom/sorbet/lsp/base.rb', line 44

def id
  @id
end

#methodObject (readonly)

Returns the value of attribute method.



47
48
49
# File 'lib/spoom/sorbet/lsp/base.rb', line 47

def method
  @method
end

#paramsObject (readonly)

Returns the value of attribute params.



50
51
52
# File 'lib/spoom/sorbet/lsp/base.rb', line 50

def params
  @params
end