Class: Neo4j::Http::Node

Inherits:
ObjectWrapper show all
Defined in:
lib/neo4j/http/node.rb

Constant Summary collapse

DEFAULT_PRIMARY_KEY_NAME =
"uuid"

Instance Attribute Summary

Attributes inherited from ObjectWrapper

#attributes, #key_name, #key_value, #label, #original_attributes

Instance Method Summary collapse

Methods inherited from ObjectWrapper

#method_missing, #respond_to_missing?

Constructor Details

#initialize(label:, primary_key_name: DEFAULT_PRIMARY_KEY_NAME, **attributes) ⇒ Node

Returns a new instance of Node.



7
8
9
10
# File 'lib/neo4j/http/node.rb', line 7

def initialize(label:, primary_key_name: DEFAULT_PRIMARY_KEY_NAME, **attributes)
  super
  @key_value = @attributes.delete(key_name)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Neo4j::Http::ObjectWrapper