Sha256: 27913b5899c141b8b4b7e6f52c61d346c885fb056eb5605c6b0c8f9dd274deb0

Contents?: true

Size: 589 Bytes

Versions: 2

Compression:

Stored size: 589 Bytes

Contents

module LanguageServer
  module Protocol
    module Interface
      #
      # The parameters of a Workspace Symbol Request.
      #
      class WorkspaceSymbolParams
        def initialize(query:)
          @attributes = {}

          @attributes[:query] = query

          @attributes.freeze
        end

        #
        # A non-empty query string
        #
        # @return [string]
        def query
          attributes.fetch(:query)
        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

Version Path
language_server-protocol-0.4.0 lib/language_server/protocol/interface/workspace_symbol_params.rb
language_server-protocol-0.3.0 lib/language_server/protocol/interface/workspace_symbol_params.rb