class ElasticEmail::EncodingType
Constants
- BASE64
- NONE
- QUOTED_PRINTABLE
- RAW7BIT
- RAW8BIT
- USER_PROVIDED
- UUE
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/encoding_type.rb, line 29 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/encoding_type.rb, line 36 def build_from_hash(value) constantValues = EncodingType.constants.select { |c| EncodingType::const_get(c) == value } raise "Invalid ENUM value #{value} for class #EncodingType" if constantValues.empty? value end