Class: Neo4jBolt::Node

Inherits:
Hash
  • Object
show all
Defined in:
lib/neo4j_bolt.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id, labels, properties) ⇒ Node

Returns a new instance of Node.



258
259
260
261
262
# File 'lib/neo4j_bolt.rb', line 258

def initialize(id, labels, properties)
    @id = id
    @labels = labels
    properties.each_pair { |k, v| self[k] = v }
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



263
264
265
# File 'lib/neo4j_bolt.rb', line 263

def id
  @id
end

#labelsObject (readonly)

Returns the value of attribute labels.



263
264
265
# File 'lib/neo4j_bolt.rb', line 263

def labels
  @labels
end