Class: Lutaml::Xsd::Spa::Svg::Config::UIColors

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

Overview

UI color value object

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#backgroundObject (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

#borderObject (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

#shadowObject (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

#textObject (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