Class: LSP::WorkDoneProgressEnd

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

Instance Method Summary collapse

Methods inherited from LSPBase

#to_h, #to_json

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

#kindObject

type: string with value ‘end’ # type: string



152
153
154
# File 'lib/lsp/lsp_protocol_progress.rb', line 152

def kind
  @kind
end

#messageObject

type: string with value ‘end’ # type: string



152
153
154
# File 'lib/lsp/lsp_protocol_progress.rb', line 152

def message
  @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.message = value['message']
  self
end