Class: Chutney::LSP::Result

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#idObject (readonly)

Returns the value of attribute id.



8
9
10
# File 'lib/chutney/lsp/result.rb', line 8

def id
  @id
end

#responseObject (readonly)

Returns the value of attribute response.



8
9
10
# File 'lib/chutney/lsp/result.rb', line 8

def response
  @response
end