Class: CMV4APIClient::ChannelMessageNotificationType
- Inherits:
-
Object
- Object
- CMV4APIClient::ChannelMessageNotificationType
- Defined in:
- lib/cmv4-openapi-client/models/channel_message_notification_type.rb
Constant Summary collapse
- SUCCESS =
"Success".freeze
- VALIDATION =
"Validation".freeze
- WARNING =
"Warning".freeze
- INFORMATION =
"Information".freeze
- PROGRESS_UPDATE =
"ProgressUpdate".freeze
- UPLOAD_SUCCESS =
"UploadSuccess".freeze
- COMPLETE =
"Complete".freeze
- ERROR =
"Error".freeze
Class Method Summary collapse
-
.build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Summary collapse
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Class Method Details
.build_from_hash(value) ⇒ String
Builds the enum from string
29 30 31 |
# File 'lib/cmv4-openapi-client/models/channel_message_notification_type.rb', line 29 def self.build_from_hash(value) new.build_from_hash(value) end |
Instance Method Details
#build_from_hash(value) ⇒ String
Builds the enum from string
36 37 38 39 40 |
# File 'lib/cmv4-openapi-client/models/channel_message_notification_type.rb', line 36 def build_from_hash(value) constantValues = ChannelMessageNotificationType.constants.select { |c| ChannelMessageNotificationType::const_get(c) == value } raise "Invalid ENUM value #{value} for class #ChannelMessageNotificationType" if constantValues.empty? value end |