class Flowckerc::Link
Attributes
from_atom[RW]
from_port[RW]
id[R]
to_atom[RW]
to_port[RW]
Public Class Methods
new(from_atom, from_port, to_atom, to_port)
click to toggle source
# File lib/flowckerc/tokens.rb, line 23 def initialize from_atom, from_port, to_atom, to_port @id = UniqueID.next @from_atom = from_atom @from_port = from_port @to_atom = to_atom @to_port = to_port end
Public Instance Methods
toHash()
click to toggle source
# File lib/flowckerc/tokens.rb, line 31 def toHash { id: @id, from: { atomID: @from_atom, port: { name: @from_port } }, to: { atomID: @to_atom, port: { name: @to_port } } } end