Class: Chutney::LSP::Result
- Inherits:
-
Object
- Object
- Chutney::LSP::Result
- Defined in:
- lib/chutney/lsp/result.rb
Overview
A wrapper that holds a response to the query message from the LSP client
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response:, id: nil) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(response:, id: nil) ⇒ Result
Returns a new instance of Result.
10 11 12 13 |
# File 'lib/chutney/lsp/result.rb', line 10 def initialize(response:, id: nil) @id = id @response = response end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
8 9 10 |
# File 'lib/chutney/lsp/result.rb', line 8 def id @id end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
8 9 10 |
# File 'lib/chutney/lsp/result.rb', line 8 def response @response end |