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
Returns the value of attribute id.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Attributes inherited from Message
Instance Method Summary collapse
-
#initialize(id, method, params) ⇒ Request
constructor
A new instance of Request.
Methods inherited from Message
Constructor Details
#initialize(id, method, params) ⇒ Request
37 38 39 40 41 42 |
# File 'lib/spoom/sorbet/lsp/base.rb', line 37 def initialize(id, method, params) super() @id = id @method = method @params = params end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
35 36 37 |
# File 'lib/spoom/sorbet/lsp/base.rb', line 35 def id @id end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
35 36 37 |
# File 'lib/spoom/sorbet/lsp/base.rb', line 35 def method @method end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
35 36 37 |
# File 'lib/spoom/sorbet/lsp/base.rb', line 35 def params @params end |