Class: Lutaml::Xsd::Spa::Svg::Config::ComponentColors

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

Overview

Component color value object

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#baseObject (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_endObject (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_startObject (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