Class: Lutaml::Xsd::Spa::Svg::LayoutConnection

Inherits:
Object
  • Object
show all
Defined in:
lib/lutaml/xsd/spa/svg/layout_engine.rb

Overview

Value object representing a connection between nodes

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(from_node, to_node, connector_type) ⇒ LayoutConnection

Returns a new instance of LayoutConnection.



84
85
86
87
88
# File 'lib/lutaml/xsd/spa/svg/layout_engine.rb', line 84

def initialize(from_node, to_node, connector_type)
  @from_node = from_node
  @to_node = to_node
  @connector_type = connector_type
end

Instance Attribute Details

#connector_typeObject (readonly)

Returns the value of attribute connector_type.



82
83
84
# File 'lib/lutaml/xsd/spa/svg/layout_engine.rb', line 82

def connector_type
  @connector_type
end

#from_nodeObject (readonly)

Returns the value of attribute from_node.



82
83
84
# File 'lib/lutaml/xsd/spa/svg/layout_engine.rb', line 82

def from_node
  @from_node
end

#to_nodeObject (readonly)

Returns the value of attribute to_node.



82
83
84
# File 'lib/lutaml/xsd/spa/svg/layout_engine.rb', line 82

def to_node
  @to_node
end