Class: Mementus::EdgeBuilder

Inherits:
Object
  • Object
show all
Includes:
ElementBuilder
Defined in:
lib/mementus/edge_builder.rb

Instance Attribute Summary collapse

Attributes included from ElementBuilder

#id, #label

Instance Method Summary collapse

Methods included from ElementBuilder

#[]=, #props, #props=

Instance Attribute Details

#fromObject

Returns the value of attribute from.



5
6
7
# File 'lib/mementus/edge_builder.rb', line 5

def from
  @from
end

#toObject

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_edgeObject



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