Class: Lutaml::Xsd::Spa::Svg::Config::VerticalLayoutConfig

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

Overview

Vertical layout configuration value object

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(vertical_hash) ⇒ VerticalLayoutConfig

Returns a new instance of VerticalLayoutConfig.



34
35
36
# File 'lib/lutaml/xsd/spa/svg/config/layout_config.rb', line 34

def initialize(vertical_hash)
  @item_spacing = vertical_hash["item_spacing"] || 15
end

Instance Attribute Details

#item_spacingObject (readonly)

Returns the value of attribute item_spacing.



32
33
34
# File 'lib/lutaml/xsd/spa/svg/config/layout_config.rb', line 32

def item_spacing
  @item_spacing
end