class FlatApi::ScoreLicense
Constants
- CC0
- CC_BY
- CC_BY_NC
- CC_BY_NC_ND
- CC_BY_NC_SA
- CC_BY_ND
- CC_BY_SA
- COPYRIGHT
Public Instance Methods
build_from_hash(value)
click to toggle source
Builds the enum from string @param [String] The enum value in the form of the string @return [String] The enum value
# File lib/flat_api/models/score_license.rb, line 30 def build_from_hash(value) constantValues = ScoreLicense.constants.select{|c| ScoreLicense::const_get(c) == value} raise "Invalid ENUM value #{value} for class #ScoreLicense" if constantValues.empty? value end