Class: Lutaml::Xsd::Spa::Svg::Config::ColorScheme
- Inherits:
-
Object
- Object
- Lutaml::Xsd::Spa::Svg::Config::ColorScheme
- Defined in:
- lib/lutaml/xsd/spa/svg/config/color_scheme.rb
Overview
Value object for color configuration
Instance Method Summary collapse
- #attribute ⇒ Object
- #element ⇒ Object
- #group ⇒ Object
- #indicators ⇒ Object
-
#initialize(colors_hash) ⇒ ColorScheme
constructor
A new instance of ColorScheme.
- #type ⇒ Object
- #ui ⇒ Object
Constructor Details
#initialize(colors_hash) ⇒ ColorScheme
Returns a new instance of ColorScheme.
10 11 12 |
# File 'lib/lutaml/xsd/spa/svg/config/color_scheme.rb', line 10 def initialize(colors_hash) @colors = colors_hash end |
Instance Method Details
#attribute ⇒ Object
22 23 24 |
# File 'lib/lutaml/xsd/spa/svg/config/color_scheme.rb', line 22 def attribute ComponentColors.new(@colors["attribute"] || {}) end |
#element ⇒ Object
14 15 16 |
# File 'lib/lutaml/xsd/spa/svg/config/color_scheme.rb', line 14 def element ComponentColors.new(@colors["element"] || {}) end |
#group ⇒ Object
26 27 28 |
# File 'lib/lutaml/xsd/spa/svg/config/color_scheme.rb', line 26 def group ComponentColors.new(@colors["group"] || {}) end |
#indicators ⇒ Object
34 35 36 |
# File 'lib/lutaml/xsd/spa/svg/config/color_scheme.rb', line 34 def indicators IndicatorColors.new(@colors["indicators"] || {}) end |
#type ⇒ Object
18 19 20 |
# File 'lib/lutaml/xsd/spa/svg/config/color_scheme.rb', line 18 def type ComponentColors.new(@colors["type"] || {}) end |