Class: Dag::Standard::Source
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 creates a source instance from a link.
Methods inherited from EndPoint
from, from_resource, #initialize, #matches?
Constructor Details
This class inherits a constructor from Dag::Standard::EndPoint
Class Method Details
.from_edge(edge) ⇒ Object
Factory Construction method creates a source instance from a link
37 38 39 |
# File 'lib/dag/standard.rb', line 37 def self.from_edge(edge) self.new(edge.ancestor_id) end |