Module: Orientdb4r::DocumentMetadata
- Defined in:
- lib/orientdb4r/rest/model.rb
Overview
This module represents API to document metadata.
Instance Method Summary collapse
-
#doc_class ⇒ Object
Gets the document class.
-
#doc_rid ⇒ Object
Gets the document ID.
-
#doc_type ⇒ Object
Gets the document type.
-
#doc_version ⇒ Object
Gets the document version.
Instance Method Details
#doc_class ⇒ Object
Gets the document class.
122 123 124 |
# File 'lib/orientdb4r/rest/model.rb', line 122 def doc_class self['@class'] end |
#doc_rid ⇒ Object
Gets the document ID.
128 129 130 131 |
# File 'lib/orientdb4r/rest/model.rb', line 128 def doc_rid @mixedin_rid = Rid.new(self['@rid']) if @mixedin_rid.nil? @mixedin_rid end |
#doc_type ⇒ Object
Gets the document type.
141 142 143 |
# File 'lib/orientdb4r/rest/model.rb', line 141 def doc_type self['@type'] end |
#doc_version ⇒ Object
Gets the document version.
135 136 137 |
# File 'lib/orientdb4r/rest/model.rb', line 135 def doc_version self['@version'] end |