Class: RusticiSoftwareCloudV2::RegistrationCompletion
- Inherits:
-
Object
- Object
- RusticiSoftwareCloudV2::RegistrationCompletion
- Defined in:
- lib/rustici_software_cloud_v2/models/registration_completion.rb
Constant Summary collapse
- UNKNOWN =
'UNKNOWN'.freeze
- COMPLETED =
'COMPLETED'.freeze
- INCOMPLETE =
'INCOMPLETE'.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
25 26 27 28 29 |
# File 'lib/rustici_software_cloud_v2/models/registration_completion.rb', line 25 def build_from_hash(value) constantValues = RegistrationCompletion.constants.select { |c| RegistrationCompletion::const_get(c) == value } raise "Invalid ENUM value #{value} for class #RegistrationCompletion" if constantValues.empty? value end |