Class: Lutaml::Xsd::Spa::Svg::Config::LayoutConfig
- Inherits:
-
Object
- Object
- Lutaml::Xsd::Spa::Svg::Config::LayoutConfig
- Defined in:
- lib/lutaml/xsd/spa/svg/config/layout_config.rb
Overview
Value object for layout configuration
Instance Attribute Summary collapse
-
#default ⇒ Object
readonly
Returns the value of attribute default.
-
#tree ⇒ Object
readonly
Returns the value of attribute tree.
-
#vertical ⇒ Object
readonly
Returns the value of attribute vertical.
Instance Method Summary collapse
-
#initialize(layout_hash) ⇒ LayoutConfig
constructor
A new instance of LayoutConfig.
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
#default ⇒ Object (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 |
#tree ⇒ Object (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 |
#vertical ⇒ Object (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 |