Class: Neo4j::Driver::Types::Node

Inherits:
Entity
  • Object
show all
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

Attributes inherited from Entity

#element_id, #id, #properties

Instance Method Summary collapse

Methods inherited from Entity

#==, #[], #hash

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

#labelsObject (readonly)

Returns the value of attribute labels.



9
10
11
# File 'lib/neo4j/driver/types/node.rb', line 9

def labels
  @labels
end