Class: TurnkeyClient::Effect
- Inherits:
-
Object
- Object
- TurnkeyClient::Effect
- Defined in:
- lib/turnkey_client/models/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
21 22 23 24 25 |
# File 'lib/turnkey_client/models/effect.rb', line 21 def build_from_hash(value) constantValues = Effect.constants.select { |c| Effect::const_get(c) == value } raise "Invalid ENUM value #{value} for class #Effect" if constantValues.empty? value end |