class ElasticEmail::MessageCategory

Constants

ACCOUNT_PROBLEM
BLACK_LISTED
CODE_ERROR
CONNECTION_PROBLEM
CONNECTION_TERMINATED
DNS_PROBLEM
GREY_LISTED
IGNORE
MANUAL_CANCEL
NOT_DELIVERED
NOT_DELIVERED_CANCELLED
NO_MAILBOX
SPAM
SPF_PROBLEM
THROTTLED
TIMEOUT
UNKNOWN

Public Class Methods

build_from_hash(value) click to toggle source

Builds the enum from string @param [String] The enum value in the form of the string @return [String] The enum value

# File lib/ElasticEmail/models/message_category.rb, line 39
def self.build_from_hash(value)
  new.build_from_hash(value)
end

Public Instance Methods

build_from_hash(value) click to toggle source

Builds the enum from string @param [String] The enum value in the form of the string @return [String] The enum value

# File lib/ElasticEmail/models/message_category.rb, line 46
def build_from_hash(value)
  constantValues = MessageCategory.constants.select { |c| MessageCategory::const_get(c) == value }
  raise "Invalid ENUM value #{value} for class #MessageCategory" if constantValues.empty?
  value
end