Class: FlatApi::MediaScoreSharingMode
- Inherits:
-
Object
- Object
- FlatApi::MediaScoreSharingMode
- Defined in:
- lib/flat_api/models/media_score_sharing_mode.rb
Constant Summary collapse
- READ =
"read".freeze
- WRITE =
"write".freeze
- COPY =
"copy".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
25 26 27 28 29 |
# File 'lib/flat_api/models/media_score_sharing_mode.rb', line 25 def build_from_hash(value) constantValues = MediaScoreSharingMode.constants.select{|c| MediaScoreSharingMode::const_get(c) == value} raise "Invalid ENUM value #{value} for class #MediaScoreSharingMode" if constantValues.empty? value end |