Class: FlatApi::CollectionPrivacy
- Inherits:
-
Object
- Object
- FlatApi::CollectionPrivacy
- Defined in:
- lib/flat_api/models/collection_privacy.rb
Constant Summary collapse
- PRIVATE =
"private".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/collection_privacy.rb', line 23 def build_from_hash(value) constantValues = CollectionPrivacy.constants.select{|c| CollectionPrivacy::const_get(c) == value} raise "Invalid ENUM value #{value} for class #CollectionPrivacy" if constantValues.empty? value end |