Sha256: 1ce8ced7d2ff6d8dbff1be69082cba4fbdfe0cdbe2c174e18611e21946f9b2b2

Contents?: true

Size: 528 Bytes

Versions: 2

Compression:

Stored size: 528 Bytes

Contents

module LanguageServer
  module Protocol
    module Interface
      class UnregistrationParams
        def initialize(unregisterations:)
          @attributes = {}

          @attributes[:unregisterations] = unregisterations

          @attributes.freeze
        end

        # @return [Unregistration[]]
        def unregisterations
          attributes.fetch(:unregisterations)
        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/unregistration_params.rb
language_server-protocol-0.3.0 lib/language_server/protocol/interface/unregistration_params.rb