Class: LSP::WorkDoneProgressEnd
- Defined in:
- lib/lsp/lsp_protocol_progress.rb
Overview
export interface WorkDoneProgressEnd
kind: 'end';
/**
* Optional, a final message indicating to for example indicate the outcome
* of the operation.
*/
message?: string;
Instance Attribute Summary collapse
-
#kind ⇒ Object
type: string with value ‘end’ # type: string.
-
#message ⇒ Object
type: string with value ‘end’ # type: string.
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ WorkDoneProgressEnd
constructor
A new instance of WorkDoneProgressEnd.
Methods inherited from LSPBase
Constructor Details
#initialize(initial_hash = nil) ⇒ WorkDoneProgressEnd
Returns a new instance of WorkDoneProgressEnd.
154 155 156 157 |
# File 'lib/lsp/lsp_protocol_progress.rb', line 154 def initialize(initial_hash = nil) super @optional_method_names = %i[message] end |
Instance Attribute Details
#kind ⇒ Object
type: string with value ‘end’ # type: string
152 153 154 |
# File 'lib/lsp/lsp_protocol_progress.rb', line 152 def kind @kind end |
#message ⇒ Object
type: string with value ‘end’ # type: string
152 153 154 |
# File 'lib/lsp/lsp_protocol_progress.rb', line 152 def @message end |
Instance Method Details
#from_h!(value) ⇒ Object
159 160 161 162 163 164 |
# File 'lib/lsp/lsp_protocol_progress.rb', line 159 def from_h!(value) value = {} if value.nil? self.kind = value['kind'] # Unknown type self. = value['message'] self end |