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