Sha256: b08791551f28048b7f40a375d20b8983335be7338f102573ddf034c73217e2bf
Contents?: true
Size: 1.05 KB
Versions: 3
Compression:
Stored size: 1.05 KB
Contents
module LanguageServer module Protocol module Interface class ApplyWorkspaceEditResponse def initialize(applied:, failure_reason: nil) @attributes = {} @attributes[:applied] = applied @attributes[:failureReason] = failure_reason if failure_reason @attributes.freeze end # # Indicates whether the edit was applied or not. # # @return [boolean] def applied attributes.fetch(:applied) end # # An optional textual description for why the edit was not applied. # This may be used may be used by the server for diagnostic # logging or to provide a suitable error for a request that # triggered the edit. # # @return [string] def failure_reason attributes.fetch(:failureReason) 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
3 entries across 3 versions & 1 rubygems