Class: Lutaml::Xsd::Spa::Svg::Config::SpacingDimensions

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

Overview

Spacing dimension value object

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(spacing_hash) ⇒ SpacingDimensions

Returns a new instance of SpacingDimensions.



73
74
75
76
77
# File 'lib/lutaml/xsd/spa/svg/config/dimensions.rb', line 73

def initialize(spacing_hash)
  @horizontal = spacing_hash["horizontal"] || 20
  @vertical = spacing_hash["vertical"] || 15
  @indent = spacing_hash["indent"] || 40
end

Instance Attribute Details

#horizontalObject (readonly)

Returns the value of attribute horizontal.



71
72
73
# File 'lib/lutaml/xsd/spa/svg/config/dimensions.rb', line 71

def horizontal
  @horizontal
end

#indentObject (readonly)

Returns the value of attribute indent.



71
72
73
# File 'lib/lutaml/xsd/spa/svg/config/dimensions.rb', line 71

def indent
  @indent
end

#verticalObject (readonly)

Returns the value of attribute vertical.



71
72
73
# File 'lib/lutaml/xsd/spa/svg/config/dimensions.rb', line 71

def vertical
  @vertical
end