Class: Omml::Models::STLang

Inherits:
Lutaml::Model::Type::Value
  • Object
show all
Defined in:
lib/omml/models/simple_types/st_lang.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_lang.rb', line 6

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

  cast_value(:st_lang_code, value, options) ||
    cast_value(:st_string, value, options)
end