Class: TurnkeyClient::AccessType
- Inherits:
-
Object
- Object
- TurnkeyClient::AccessType
- Defined in:
- lib/turnkey_client/models/access_type.rb
Constant Summary collapse
- WEB =
'ACCESS_TYPE_WEB'.freeze
- API =
'ACCESS_TYPE_API'.freeze
- ALL =
'ACCESS_TYPE_ALL'.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/access_type.rb', line 22 def build_from_hash(value) constantValues = AccessType.constants.select { |c| AccessType::const_get(c) == value } raise "Invalid ENUM value #{value} for class #AccessType" if constantValues.empty? value end |