Class: FlatApi::ScoreDataEncoding
- Inherits:
-
Object
- Object
- FlatApi::ScoreDataEncoding
- Defined in:
- lib/flat_api/models/score_data_encoding.rb
Constant Summary collapse
- BASE64 =
"base64".freeze
Instance Method Summary collapse
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Details
#build_from_hash(value) ⇒ String
Builds the enum from string
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 |