class LanguageServer::Protocol::Interface::DeleteFile
Delete file operation
Attributes
attributes[R]
Public Class Methods
new(kind:, uri:, options: nil, annotation_id: nil)
click to toggle source
# File lib/language_server/protocol/interface/delete_file.rb, line 8 def initialize(kind:, uri:, options: nil, annotation_id: nil) @attributes = {} @attributes[:kind] = kind @attributes[:uri] = uri @attributes[:options] = options if options @attributes[:annotationId] = annotation_id if annotation_id @attributes.freeze end
Public Instance Methods
annotation_id()
click to toggle source
An optional annotation identifer describing the operation.
@return [string]
# File lib/language_server/protocol/interface/delete_file.rb, line 47 def annotation_id attributes.fetch(:annotationId) end
kind()
click to toggle source
A delete
@return [“delete”]
# File lib/language_server/protocol/interface/delete_file.rb, line 23 def kind attributes.fetch(:kind) end
options()
click to toggle source
Delete options.
@return [DeleteFileOptions]
# File lib/language_server/protocol/interface/delete_file.rb, line 39 def options attributes.fetch(:options) end
to_hash()
click to toggle source
# File lib/language_server/protocol/interface/delete_file.rb, line 53 def to_hash attributes end
to_json(*args)
click to toggle source
# File lib/language_server/protocol/interface/delete_file.rb, line 57 def to_json(*args) to_hash.to_json(*args) end
uri()
click to toggle source
The file to delete.
@return [string]
# File lib/language_server/protocol/interface/delete_file.rb, line 31 def uri attributes.fetch(:uri) end