Sha256: defa5f83969380696706d5d5d9c444f0f2283a8b530d940682db6b89989bfab7

Contents?: true

Size: 557 Bytes

Versions: 2

Compression:

Stored size: 557 Bytes

Contents

module LanguageServer
  module Protocol
    module Interface
      class ApplyWorkspaceEditResponse
        def initialize(applied:)
          @attributes = {}

          @attributes[:applied] = applied

          @attributes.freeze
        end

        #
        # Indicates whether the edit was applied or not.
        #
        # @return [boolean]
        def applied
          attributes.fetch(:applied)
        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/apply_workspace_edit_response.rb
language_server-protocol-0.3.0 lib/language_server/protocol/interface/apply_workspace_edit_response.rb