Class: LSP::LogMessageParams

Inherits:
LSPBase
  • Object
show all
Defined in:
lib/lsp/lsp_protocol.rb

Overview

export interface LogMessageParams

/**
 * The message type. See {@link MessageType
 */
type: MessageType;
/**
 * The actual message
 */
message: string;

}

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LSPBase

#initialize, #to_h, #to_json

Constructor Details

This class inherits a constructor from LSP::LSPBase

Instance Attribute Details

#messageObject

type: MessageType # type: string



447
448
449
# File 'lib/lsp/lsp_protocol.rb', line 447

def message
  @message
end

#typeObject

type: MessageType # type: string



447
448
449
# File 'lib/lsp/lsp_protocol.rb', line 447

def type
  @type
end

Instance Method Details

#from_h!(value) ⇒ Object



449
450
451
452
453
454
# File 'lib/lsp/lsp_protocol.rb', line 449

def from_h!(value)
  value = {} if value.nil?
  self.type = value['type'] # Unknown type
  self.message = value['message']
  self
end