Method: OMF::OML::NetworkLink#initialize
- Defined in:
- lib/omf_oml/network.rb
#initialize(name, fromNode, toNode, attributes, network) ⇒ NetworkLink
Returns a new instance of NetworkLink.
399 400 401 402 403 404 405 406 407 408 409 410 |
# File 'lib/omf_oml/network.rb', line 399 def initialize(name, fromNode, toNode, attributes, network) super name, attributes, network if fromNode @fromNode = fromNode #puts ">>>> NODE: #{fromNode.inspect}" @attributes[:from_id] = fromNode.el_id end if toNode @toNode = toNode @attributes[:to_id] = toNode.el_id end end |