Method: KlaviyoAPI::ProfileNotSentEmailEnum#build_from_hash

Defined in:
lib/klaviyo-api-sdk/models/profile_not_sent_email_enum.rb

#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



30
31
32
33
34
# File 'lib/klaviyo-api-sdk/models/profile_not_sent_email_enum.rb', line 30

def build_from_hash(value)
  constantValues = ProfileNotSentEmailEnum.constants.select { |c| ProfileNotSentEmailEnum::const_get(c) == value }
  raise "Invalid ENUM value #{value} for class #ProfileNotSentEmailEnum" if constantValues.empty?
  value
end