Sha256: d58a30dfe88f23d5f1c5a96ea12d6291a0d7f29c2535a5e37f8287b6c8f60aea

Contents?: true

Size: 918 Bytes

Versions: 2

Compression:

Stored size: 918 Bytes

Contents

=begin
#Sunshine Conversations API

The version of the OpenAPI document: 12.8.0

Generated by: https://openapi-generator.tech
OpenAPI Generator version: 4.3.1
=end

require 'date'

module SunshineConversationsClient
  class ConversationType
    PERSONAL = "personal".freeze
    SDK_GROUP = "sdkGroup".freeze

    # Builds the enum from string
    # @param [String] The enum value in the form of the string
    # @return [String] The enum value
    def self.build_from_hash(value)
      new.build_from_hash(value)
    end

    # Builds the enum from string
    # @param [String] The enum value in the form of the string
    # @return [String] The enum value
    def build_from_hash(value)
      constantValues = ConversationType.constants.select { |c| ConversationType::const_get(c) == value }
      raise "Invalid ENUM value #{value} for class #ConversationType" if constantValues.empty?
      value
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sunshine-conversations-client-13.0.0 lib/sunshine-conversations-client/models/conversation_type.rb
sunshine-conversations-client-12.8.0 lib/sunshine-conversations-client/models/conversation_type.rb