class Neo4j::Core::Node
Attributes
id[R]
labels[R]
neo_id[R]
properties[R]
props[R]
Public Class Methods
from_url(url, properties = {})
click to toggle source
# File lib/neo4j/core/node.rb 26 def from_url(url, properties = {}) 27 id = url.split('/')[-1].to_i 28 labels = nil # unknown 29 properties = properties 30 31 new(id, labels, properties) 32 end
new(id, labels, properties = {})
click to toggle source
# File lib/neo4j/core/node.rb 15 def initialize(id, labels, properties = {}) 16 @id = id 17 @labels = labels.map(&:to_sym) unless labels.nil? 18 @properties = properties.symbolize_keys 19 end
Public Instance Methods
==(other)
click to toggle source
# File lib/neo4j/core/node.rb 21 def ==(other) 22 other.is_a?(Node) && neo_id == other.neo_id 23 end