Class: Dag::Standard::Sink

Inherits:
EndPoint show all
Defined in:
lib/dag/standard.rb

Overview

Encapsulates information about the sink of a link

Instance Attribute Summary

Attributes inherited from EndPoint

#id

Class Method Summary collapse

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 sink instance from a link



44
45
46
# File 'lib/dag/standard.rb', line 44

def self.from_edge(edge)
  self.new(edge.descendant_id)
end