Class: Dag::Polymorphic::Source
- Defined in:
- lib/dag/polymorphic.rb
Overview
Encapsulates information about the source of a link
Instance Attribute Summary
Attributes inherited from EndPoint
Class Method Summary collapse
-
.from_edge(edge) ⇒ Object
Factory Construction method that generates a source from a link.
Methods inherited from EndPoint
from, from_resource, #initialize, #matches?
Constructor Details
This class inherits a constructor from Dag::Polymorphic::EndPoint
Class Method Details
.from_edge(edge) ⇒ Object
Factory Construction method that generates a source from a link
40 41 42 |
# File 'lib/dag/polymorphic.rb', line 40 def self.from_edge(edge) self.new(edge.ancestor_id, edge.ancestor_type) end |