Sha256: 937d3fd7b974ac58082c9623792eac682d8704776a527f8d510bebfd1bc93909
Contents?: true
Size: 1.01 KB
Versions: 110
Compression:
Stored size: 1.01 KB
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 [MessageType] 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_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end
Version data entries
110 entries across 110 versions & 15 rubygems