Class: FlatApi::ScoreDataEncoding

Inherits:
Object
  • Object
show all
Defined in:
lib/flat_api/models/score_data_encoding.rb

Constant Summary collapse

BASE64 =
"base64".freeze

Instance Method Summary collapse

Instance Method Details

#build_from_hash(value) ⇒ String

Builds the enum from string

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



23
24
25
26
27
# File 'lib/flat_api/models/score_data_encoding.rb', line 23

def build_from_hash(value)
  constantValues = ScoreDataEncoding.constants.select{|c| ScoreDataEncoding::const_get(c) == value}
  raise "Invalid ENUM value #{value} for class #ScoreDataEncoding" if constantValues.empty?
  value
end