class LanguageServer::Protocol::Interface::VersionedNotebookDocumentIdentifier
A versioned notebook document identifier.
Attributes
attributes[R]
Public Class Methods
new(version:, uri:)
click to toggle source
# File lib/language_server/protocol/interface/versioned_notebook_document_identifier.rb, line 8 def initialize(version:, uri:) @attributes = {} @attributes[:version] = version @attributes[:uri] = uri @attributes.freeze end
Public Instance Methods
to_hash()
click to toggle source
# File lib/language_server/protocol/interface/versioned_notebook_document_identifier.rb, line 35 def to_hash attributes end
to_json(*args)
click to toggle source
# File lib/language_server/protocol/interface/versioned_notebook_document_identifier.rb, line 39 def to_json(*args) to_hash.to_json(*args) end
uri()
click to toggle source
The notebook document’s URI.
@return [string]
# File lib/language_server/protocol/interface/versioned_notebook_document_identifier.rb, line 29 def uri attributes.fetch(:uri) end
version()
click to toggle source
The version number of this notebook document.
@return [number]
# File lib/language_server/protocol/interface/versioned_notebook_document_identifier.rb, line 21 def version attributes.fetch(:version) end