Class: Spoom::LSP::Request
- 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
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
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
Returns a new instance of Request.
47 48 49 50 51 52 |
# File 'lib/spoom/sorbet/lsp/base.rb', line 47 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.
41 42 43 |
# File 'lib/spoom/sorbet/lsp/base.rb', line 41 def id @id end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
44 45 46 |
# File 'lib/spoom/sorbet/lsp/base.rb', line 44 def params @params end |