Class: Lutaml::Xsd::Spa::Svg::Config::ComponentColors
- Inherits:
-
Object
- Object
- Lutaml::Xsd::Spa::Svg::Config::ComponentColors
- Defined in:
- lib/lutaml/xsd/spa/svg/config/color_scheme.rb
Overview
Component color value object
Instance Attribute Summary collapse
-
#base ⇒ Object
readonly
Returns the value of attribute base.
-
#gradient_end ⇒ Object
readonly
Returns the value of attribute gradient_end.
-
#gradient_start ⇒ Object
readonly
Returns the value of attribute gradient_start.
Instance Method Summary collapse
-
#initialize(colors_hash) ⇒ ComponentColors
constructor
A new instance of ComponentColors.
Constructor Details
#initialize(colors_hash) ⇒ ComponentColors
Returns a new instance of ComponentColors.
43 44 45 46 47 |
# File 'lib/lutaml/xsd/spa/svg/config/color_scheme.rb', line 43 def initialize(colors_hash) @base = colors_hash["base"] @gradient_start = colors_hash["gradient_start"] @gradient_end = colors_hash["gradient_end"] end |
Instance Attribute Details
#base ⇒ Object (readonly)
Returns the value of attribute base.
41 42 43 |
# File 'lib/lutaml/xsd/spa/svg/config/color_scheme.rb', line 41 def base @base end |
#gradient_end ⇒ Object (readonly)
Returns the value of attribute gradient_end.
41 42 43 |
# File 'lib/lutaml/xsd/spa/svg/config/color_scheme.rb', line 41 def gradient_end @gradient_end end |
#gradient_start ⇒ Object (readonly)
Returns the value of attribute gradient_start.
41 42 43 |
# File 'lib/lutaml/xsd/spa/svg/config/color_scheme.rb', line 41 def gradient_start @gradient_start end |