Class: Lutaml::Xsd::Spa::Svg::Config::TreeLayoutConfig
- Inherits:
-
Object
- Object
- Lutaml::Xsd::Spa::Svg::Config::TreeLayoutConfig
- Defined in:
- lib/lutaml/xsd/spa/svg/config/layout_config.rb
Overview
Tree layout configuration value object
Instance Attribute Summary collapse
-
#direction ⇒ Object
readonly
Returns the value of attribute direction.
-
#level_spacing ⇒ Object
readonly
Returns the value of attribute level_spacing.
Instance Method Summary collapse
-
#initialize(tree_hash) ⇒ TreeLayoutConfig
constructor
A new instance of TreeLayoutConfig.
Constructor Details
#initialize(tree_hash) ⇒ TreeLayoutConfig
Returns a new instance of TreeLayoutConfig.
24 25 26 27 |
# File 'lib/lutaml/xsd/spa/svg/config/layout_config.rb', line 24 def initialize(tree_hash) @direction = tree_hash["direction"] || "top_down" @level_spacing = tree_hash["level_spacing"] || 60 end |
Instance Attribute Details
#direction ⇒ Object (readonly)
Returns the value of attribute direction.
22 23 24 |
# File 'lib/lutaml/xsd/spa/svg/config/layout_config.rb', line 22 def direction @direction end |
#level_spacing ⇒ Object (readonly)
Returns the value of attribute level_spacing.
22 23 24 |
# File 'lib/lutaml/xsd/spa/svg/config/layout_config.rb', line 22 def level_spacing @level_spacing end |