Class: RailsGraph::Graph::Relationships::Inheritance
- Inherits:
-
RailsGraph::Graph::Relationship
- Object
- Entity
- RailsGraph::Graph::Relationship
- RailsGraph::Graph::Relationships::Inheritance
- Defined in:
- lib/rails_graph/graph/relationships/inheritance.rb
Instance Attribute Summary
Attributes inherited from RailsGraph::Graph::Relationship
Attributes inherited from Entity
Instance Method Summary collapse
-
#initialize(source, target) ⇒ Inheritance
constructor
A new instance of Inheritance.
Methods inherited from RailsGraph::Graph::Relationship
Methods inherited from Entity
Constructor Details
#initialize(source, target) ⇒ Inheritance
Returns a new instance of Inheritance.
9 10 11 12 13 14 15 16 17 |
# File 'lib/rails_graph/graph/relationships/inheritance.rb', line 9 def initialize(source, target) super( source: source, target: target, label: "InheritsFrom", name: target.name, properties: {} ) end |