Class: Lutaml::Xsd::Spa::Svg::Config::SpacingDimensions
- Inherits:
-
Object
- Object
- Lutaml::Xsd::Spa::Svg::Config::SpacingDimensions
- Defined in:
- lib/lutaml/xsd/spa/svg/config/dimensions.rb
Overview
Spacing dimension value object
Instance Attribute Summary collapse
-
#horizontal ⇒ Object
readonly
Returns the value of attribute horizontal.
-
#indent ⇒ Object
readonly
Returns the value of attribute indent.
-
#vertical ⇒ Object
readonly
Returns the value of attribute vertical.
Instance Method Summary collapse
-
#initialize(spacing_hash) ⇒ SpacingDimensions
constructor
A new instance of SpacingDimensions.
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
#horizontal ⇒ Object (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 |
#indent ⇒ Object (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 |
#vertical ⇒ Object (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 |