Class: Lutaml::Xsd::Spa::Svg::Config::LayoutConfig

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

Overview

Value object for layout configuration

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(layout_hash) ⇒ LayoutConfig

Returns a new instance of LayoutConfig.



12
13
14
15
16
17
# File 'lib/lutaml/xsd/spa/svg/config/layout_config.rb', line 12

def initialize(layout_hash)
  @layout = layout_hash
  @default = @layout["default"] || "tree"
  @tree = TreeLayoutConfig.new(@layout["tree"] || {})
  @vertical = VerticalLayoutConfig.new(@layout["vertical"] || {})
end

Instance Attribute Details

#defaultObject (readonly)

Returns the value of attribute default.



10
11
12
# File 'lib/lutaml/xsd/spa/svg/config/layout_config.rb', line 10

def default
  @default
end

#treeObject (readonly)

Returns the value of attribute tree.



10
11
12
# File 'lib/lutaml/xsd/spa/svg/config/layout_config.rb', line 10

def tree
  @tree
end

#verticalObject (readonly)

Returns the value of attribute vertical.



10
11
12
# File 'lib/lutaml/xsd/spa/svg/config/layout_config.rb', line 10

def vertical
  @vertical
end