Sha256: 1785ccb12da3201a060c78df8761766ab6900fd9c498014725333d1cd5a56e26
Contents?: true
Size: 976 Bytes
Versions: 2
Compression:
Stored size: 976 Bytes
Contents
module LanguageServer module Protocol module Interface class ShowMessageRequestParams def initialize(type:, message:, actions: nil) @attributes = {} @attributes[:type] = type @attributes[:message] = message @attributes[:actions] = actions if actions @attributes.freeze end # # The message type. See {@link MessageType} # # @return [number] def type attributes.fetch(:type) end # # The actual message # # @return [string] def message attributes.fetch(:message) end # # The message action items to present. # # @return [MessageActionItem[]] def actions attributes.fetch(:actions) end attr_reader :attributes def to_json(*args) attributes.to_json(*args) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems