Method: KlaviyoAPI::MailboxProviderEnum#build_from_hash
- Defined in:
- lib/klaviyo-api-sdk/models/mailbox_provider_enum.rb
#build_from_hash(value) ⇒ String
Builds the enum from string
30 31 32 33 34 |
# File 'lib/klaviyo-api-sdk/models/mailbox_provider_enum.rb', line 30 def build_from_hash(value) constantValues = MailboxProviderEnum.constants.select { |c| MailboxProviderEnum::const_get(c) == value } raise "Invalid ENUM value #{value} for class #MailboxProviderEnum" if constantValues.empty? value end |