Method: InfluxDB2::ScriptLanguage#build_from_hash
- Defined in:
- lib/influxdb2/client/models/script_language.rb
#build_from_hash(value) ⇒ String
Builds the enum from string
30 31 32 33 34 |
# File 'lib/influxdb2/client/models/script_language.rb', line 30 def build_from_hash(value) constantValues = ScriptLanguage.constants.select { |c| ScriptLanguage::const_get(c) == value } raise "Invalid ENUM value #{value} for class #ScriptLanguage" if constantValues.empty? value end |