Class: Omml::Models::STHexColor

Inherits:
Lutaml::Model::Type::Value
  • Object
show all
Defined in:
lib/omml/models/simple_types/st_hex_color.rb

Class Method Summary collapse

Class Method Details

.cast(value, options = {}) ⇒ Object



6
7
8
9
10
11
# File 'lib/omml/models/simple_types/st_hex_color.rb', line 6

def self.cast(value, options = {})
  return if value.nil?

  cast_value(:st_hex_color_auto, value, options) ||
    cast_value(:st_hex_color_rgb, value, options)
end