Class: GraphElements::Edge

Inherits:
Object
  • Object
show all
Defined in:
lib/social_framework/graphs/graph_elements.rb

Overview

Define abstract methods to Vertex

Direct Known Subclasses

EdgeDefault

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#destinyObject

Returns the value of attribute destiny.



92
93
94
# File 'lib/social_framework/graphs/graph_elements.rb', line 92

def destiny
  @destiny
end

#labelsObject

Returns the value of attribute labels.



92
93
94
# File 'lib/social_framework/graphs/graph_elements.rb', line 92

def labels
  @labels
end

#originObject

Returns the value of attribute origin.



92
93
94
# File 'lib/social_framework/graphs/graph_elements.rb', line 92

def origin
  @origin
end