Class: TurnkeyClient::V1Effect
- Inherits:
-
Object
- Object
- TurnkeyClient::V1Effect
- Defined in:
- lib/turnkey_client/models/v1_effect.rb
Constant Summary collapse
- ALLOW =
'EFFECT_ALLOW'.freeze
- DENY =
'EFFECT_DENY'.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
22 23 24 25 26 |
# File 'lib/turnkey_client/models/v1_effect.rb', line 22 def build_from_hash(value) constantValues = V1Effect.constants.select { |c| V1Effect::const_get(c) == value } raise "Invalid ENUM value #{value} for class #V1Effect" if constantValues.empty? value end |