Class: GraphElements::Edge
- Inherits:
-
Object
- Object
- GraphElements::Edge
- Defined in:
- lib/social_framework/graphs/graph_elements.rb
Overview
Define abstract methods to Vertex
Direct Known Subclasses
Instance Attribute Summary collapse
-
#destiny ⇒ Object
Returns the value of attribute destiny.
-
#labels ⇒ Object
Returns the value of attribute labels.
-
#origin ⇒ Object
Returns the value of attribute origin.
Instance Method Summary collapse
-
#initialize(origin, destiny) ⇒ Edge
constructor
- Constructor to Edge ====== Params:
origin
Vertex
relationship origindestiny
-
Vertex
relationship destiny Returns NotImplementedError.
- Constructor to Edge ====== Params:
Constructor Details
#initialize(origin, destiny) ⇒ Edge
Constructor to Edge
Params:
origin
-
Vertex
relationship origin destiny
-
Vertex
relationship destiny
Returns NotImplementedError
99 100 101 |
# File 'lib/social_framework/graphs/graph_elements.rb', line 99 def initialize origin, destiny raise 'Must implement method in subclass' end |
Instance Attribute Details
#destiny ⇒ Object
Returns the value of attribute destiny.
92 93 94 |
# File 'lib/social_framework/graphs/graph_elements.rb', line 92 def destiny @destiny end |
#labels ⇒ Object
Returns the value of attribute labels.
92 93 94 |
# File 'lib/social_framework/graphs/graph_elements.rb', line 92 def labels @labels end |
#origin ⇒ Object
Returns the value of attribute origin.
92 93 94 |
# File 'lib/social_framework/graphs/graph_elements.rb', line 92 def origin @origin end |