Class: ActiverecordCallbackLens::Graph::Edge

Inherits:
Data
  • Object
show all
Defined in:
lib/activerecord_callback_lens/graph/nodes.rb

Overview

A directed edge from a child node to its parent node. label: Symbol

Instance Attribute Summary collapse

Instance Attribute Details

#from_idObject (readonly)

Returns the value of attribute from_id

Returns:

  • (Object)

    the current value of from_id



32
33
34
# File 'lib/activerecord_callback_lens/graph/nodes.rb', line 32

def from_id
  @from_id
end

#labelObject (readonly)

Returns the value of attribute label

Returns:

  • (Object)

    the current value of label



32
33
34
# File 'lib/activerecord_callback_lens/graph/nodes.rb', line 32

def label
  @label
end

#to_idObject (readonly)

Returns the value of attribute to_id

Returns:

  • (Object)

    the current value of to_id



32
33
34
# File 'lib/activerecord_callback_lens/graph/nodes.rb', line 32

def to_id
  @to_id
end