Class: Neo4j::Http::Relationship
- Inherits:
-
ObjectWrapper
- Object
- ObjectWrapper
- Neo4j::Http::Relationship
- 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
-
#initialize(label:, primary_key_name: nil, **attributes) ⇒ Relationship
constructor
A new instance of Relationship.
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