Class: ActiveGraph::Node::HasN::Association::RelFactory
- Inherits:
-
Object
- Object
- ActiveGraph::Node::HasN::Association::RelFactory
- Defined in:
- lib/active_graph/node/has_n/association/rel_factory.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.create(start_object, other_node_or_nodes, properties, association) ⇒ Object
9 10 11 12 |
# File 'lib/active_graph/node/has_n/association/rel_factory.rb', line 9 def self.create(start_object, other_node_or_nodes, properties, association) factory = new(start_object, other_node_or_nodes, properties, association) factory._create_relationship end |
Instance Method Details
#_create_relationship ⇒ Object
14 15 16 17 |
# File 'lib/active_graph/node/has_n/association/rel_factory.rb', line 14 def _create_relationship creator = association.relationship_class ? :rel_class : :factory send(:"_create_relationship_with_#{creator}") end |