Class: Neoid::Relationship::RelationshipLazyProxy
- Inherits:
-
Neography::Relationship
- Object
- Neography::Relationship
- Neoid::Relationship::RelationshipLazyProxy
- Defined in:
- lib/neoid/relationship.rb
Overview
this is a proxy that delays loading of start_node and end_node from Neo4j until accessed. the original Neography Relatioship loaded them on initialization
Instance Method Summary collapse
Instance Method Details
#end_node ⇒ Object
75 76 77 |
# File 'lib/neoid/relationship.rb', line 75 def end_node @end_node_from_db ||= @end_node = Neography::Node.load(@end_node, Neoid.db) end |
#start_node ⇒ Object
71 72 73 |
# File 'lib/neoid/relationship.rb', line 71 def start_node @start_node_from_db ||= @start_node = Neography::Node.load(@start_node, Neoid.db) end |