Class: Mementus::EdgeBuilder
- Inherits:
-
Object
- Object
- Mementus::EdgeBuilder
- Includes:
- ElementBuilder
- Defined in:
- lib/mementus/edge_builder.rb
Instance Attribute Summary collapse
-
#from ⇒ Object
Returns the value of attribute from.
-
#to ⇒ Object
Returns the value of attribute to.
Attributes included from ElementBuilder
Instance Method Summary collapse
Methods included from ElementBuilder
Instance Attribute Details
#from ⇒ Object
Returns the value of attribute from.
5 6 7 |
# File 'lib/mementus/edge_builder.rb', line 5 def from @from end |
#to ⇒ Object
Returns the value of attribute to.
5 6 7 |
# File 'lib/mementus/edge_builder.rb', line 5 def to @to end |
Instance Method Details
#to_edge ⇒ Object
23 24 25 |
# File 'lib/mementus/edge_builder.rb', line 23 def to_edge Edge.new(id: id, from: from, to: to, label: label, props: props) end |