Class: Spoom::LSP::Request
- 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
-
#id ⇒ Object
readonly
: Integer.
-
#params ⇒ Object
readonly
: Hash[untyped, untyped].
Instance Method Summary collapse
-
#initialize(id, method, params) ⇒ Request
constructor
: (Integer id, String method, Hash[untyped, untyped] params) -> void.
Methods inherited from Message
Constructor Details
#initialize(id, method, params) ⇒ Request
: (Integer id, String method, Hash[untyped, untyped] params) -> void
43 44 45 46 47 48 |
# File 'lib/spoom/sorbet/lsp/base.rb', line 43 def initialize(id, method, params) super() @id = id @method = method @params = params end |
Instance Attribute Details
#id ⇒ Object (readonly)
: Integer
37 38 39 |
# File 'lib/spoom/sorbet/lsp/base.rb', line 37 def id @id end |
#params ⇒ Object (readonly)
: Hash[untyped, untyped]
40 41 42 |
# File 'lib/spoom/sorbet/lsp/base.rb', line 40 def params @params end |