Class: Neo4j::Driver::Types::Node
- Defined in:
- lib/neo4j/driver/types/node.rb
Overview
Represents a Node in the Neo4j graph. Mirrors org.neo4j.driver.types.Node — an Entity with a set of labels.
Instance Attribute Summary collapse
-
#labels ⇒ Object
readonly
Returns the value of attribute labels.
Attributes inherited from Entity
Instance Method Summary collapse
-
#initialize(id, labels, properties, element_id = nil) ⇒ Node
constructor
A new instance of Node.
Methods inherited from Entity
Constructor Details
#initialize(id, labels, properties, element_id = nil) ⇒ Node
Returns a new instance of Node.
11 12 13 14 |
# File 'lib/neo4j/driver/types/node.rb', line 11 def initialize(id, labels, properties, element_id = nil) super(id, properties, element_id) @labels = labels end |
Instance Attribute Details
#labels ⇒ Object (readonly)
Returns the value of attribute labels.
9 10 11 |
# File 'lib/neo4j/driver/types/node.rb', line 9 def labels @labels end |