Sha256: 7aa203e3f2e0987c9872c1db85545851e121fba5d9ce20c525dc68fd5051de8b

Contents?: true

Size: 608 Bytes

Versions: 6

Compression:

Stored size: 608 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_hash
          attributes
        end

        def to_json(*args)
          to_hash.to_json(*args)
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
language_server-protocol-3.14.0.2 lib/language_server/protocol/interface/apply_workspace_edit_response.rb
language_server-protocol-3.14.0.1 lib/language_server/protocol/interface/apply_workspace_edit_response.rb
language_server-protocol-3.14.0.0 lib/language_server/protocol/interface/apply_workspace_edit_response.rb
language_server-protocol-3.12.0.0 lib/language_server/protocol/interface/apply_workspace_edit_response.rb
language_server-protocol-3.7.0.0 lib/language_server/protocol/interface/apply_workspace_edit_response.rb
language_server-protocol-0.5.0 lib/language_server/protocol/interface/apply_workspace_edit_response.rb