class LanguageServer::Protocol::Interface::ShowMessageParams
Attributes
attributes[R]
Public Class Methods
new(type:, message:)
click to toggle source
# File lib/language_server/protocol/interface/show_message_params.rb, line 5 def initialize(type:, message:) @attributes = {} @attributes[:type] = type @attributes[:message] = message @attributes.freeze end
Public Instance Methods
message()
click to toggle source
The actual message.
@return [string]
# File lib/language_server/protocol/interface/show_message_params.rb, line 26 def message attributes.fetch(:message) end
to_hash()
click to toggle source
# File lib/language_server/protocol/interface/show_message_params.rb, line 32 def to_hash attributes end
to_json(*args)
click to toggle source
# File lib/language_server/protocol/interface/show_message_params.rb, line 36 def to_json(*args) to_hash.to_json(*args) end
type()
click to toggle source
The message type. See {@link MessageType}.
@return [MessageType]
# File lib/language_server/protocol/interface/show_message_params.rb, line 18 def type attributes.fetch(:type) end