Class: ElasticEmail::MessageCategory
- Inherits:
-
Object
- Object
- ElasticEmail::MessageCategory
- Defined in:
- lib/ElasticEmail/models/message_category.rb
Constant Summary collapse
- UNKNOWN =
"Unknown".freeze
- IGNORE =
"Ignore".freeze
- SPAM =
"Spam".freeze
- BLACK_LISTED =
"BlackListed".freeze
- NO_MAILBOX =
"NoMailbox".freeze
- GREY_LISTED =
"GreyListed".freeze
- THROTTLED =
"Throttled".freeze
- TIMEOUT =
"Timeout".freeze
- CONNECTION_PROBLEM =
"ConnectionProblem".freeze
- SPF_PROBLEM =
"SPFProblem".freeze
- ACCOUNT_PROBLEM =
"AccountProblem".freeze
- DNS_PROBLEM =
"DNSProblem".freeze
- NOT_DELIVERED_CANCELLED =
"NotDeliveredCancelled".freeze
- CODE_ERROR =
"CodeError".freeze
- MANUAL_CANCEL =
"ManualCancel".freeze
- CONNECTION_TERMINATED =
"ConnectionTerminated".freeze
- NOT_DELIVERED =
"NotDelivered".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
39 40 41 |
# File 'lib/ElasticEmail/models/message_category.rb', line 39 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
46 47 48 49 50 |
# 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 |