class Mementus::EdgeProxy

Public Class Methods

new(edge, graph) click to toggle source
# File lib/mementus/edge_proxy.rb, line 3
def initialize(edge, graph)
  @edge = edge
  @graph = graph
end

Public Instance Methods

[](prop) click to toggle source
# File lib/mementus/edge_proxy.rb, line 16
def [](prop)
  @edge[prop]
end
from() click to toggle source
# File lib/mementus/edge_proxy.rb, line 24
def from
  @graph.node(@edge.from.id)
end
id() click to toggle source
# File lib/mementus/edge_proxy.rb, line 8
def id
  @edge.id
end
label() click to toggle source
# File lib/mementus/edge_proxy.rb, line 12
def label
  @edge.label
end
props() click to toggle source
# File lib/mementus/edge_proxy.rb, line 20
def props
  @edge.props
end
to() click to toggle source
# File lib/mementus/edge_proxy.rb, line 28
def to
  @graph.node(@edge.to.id)
end