Class: Neo4j::Http::Relationship

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

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: nil, **attributes) ⇒ Relationship

Returns a new instance of Relationship.



6
7
8
9
# File 'lib/neo4j/http/relationship.rb', line 6

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

Dynamic Method Handling

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