Class: Dse::Graph::VertexProperty
- Inherits:
-
Object
- Object
- Dse::Graph::VertexProperty
- Defined in:
- lib/dse/graph/vertex_property.rb
Overview
Encapsulates a vertex-property complex value. The name of the property is stored in the owning Vertex. This object contains a simple property value and any meta-properties that go with it.
VertexProperty's are created when creating a Vertex object out of a graph query result hash. Access to meta-properties is done via the #properties attribute, but there is also a short-cut using array/hash dereference syntax:
Instance Attribute Summary collapse
-
#id ⇒ Hash
readonly
Id of this property.
-
#properties ⇒ Hash<String, String>
readonly
Meta-properties of this property.
-
#value ⇒ String
readonly
Value of this property.
Instance Attribute Details
#id ⇒ Hash (readonly)
Returns id of this property.
24 25 26 |
# File 'lib/dse/graph/vertex_property.rb', line 24 def id @id end |
#properties ⇒ Hash<String, String> (readonly)
Returns meta-properties of this property.
28 29 30 |
# File 'lib/dse/graph/vertex_property.rb', line 28 def properties @properties end |
#value ⇒ String (readonly)
Returns value of this property.
26 27 28 |
# File 'lib/dse/graph/vertex_property.rb', line 26 def value @value end |