Class: Lutaml::Xsd::Spa::Svg::Config::UIColors
- Inherits:
-
Object
- Object
- Lutaml::Xsd::Spa::Svg::Config::UIColors
- Defined in:
- lib/lutaml/xsd/spa/svg/config/color_scheme.rb
Overview
UI color value object
Instance Attribute Summary collapse
-
#background ⇒ Object
readonly
Returns the value of attribute background.
-
#border ⇒ Object
readonly
Returns the value of attribute border.
-
#shadow ⇒ Object
readonly
Returns the value of attribute shadow.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(colors_hash) ⇒ UIColors
constructor
A new instance of UIColors.
Constructor Details
#initialize(colors_hash) ⇒ UIColors
Returns a new instance of UIColors.
54 55 56 57 58 59 |
# File 'lib/lutaml/xsd/spa/svg/config/color_scheme.rb', line 54 def initialize(colors_hash) @text = colors_hash["text"] @border = colors_hash["border"] @shadow = colors_hash["shadow"] @background = colors_hash["background"] end |
Instance Attribute Details
#background ⇒ Object (readonly)
Returns the value of attribute background.
52 53 54 |
# File 'lib/lutaml/xsd/spa/svg/config/color_scheme.rb', line 52 def background @background end |
#border ⇒ Object (readonly)
Returns the value of attribute border.
52 53 54 |
# File 'lib/lutaml/xsd/spa/svg/config/color_scheme.rb', line 52 def border @border end |
#shadow ⇒ Object (readonly)
Returns the value of attribute shadow.
52 53 54 |
# File 'lib/lutaml/xsd/spa/svg/config/color_scheme.rb', line 52 def shadow @shadow end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
52 53 54 |
# File 'lib/lutaml/xsd/spa/svg/config/color_scheme.rb', line 52 def text @text end |