Class: Omml::Models::STLang

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

Class Method Summary collapse

Methods included from Registerable

included

Class Method Details

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



8
9
10
11
12
13
# File 'lib/omml/models/simple_types/st_lang.rb', line 8

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

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