Class: CMV4APIClient::ChannelMessageNotificationType

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Class Method Details

.build_from_hash(value) ⇒ String

Builds the enum from string

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



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

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



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