Sha256: a010493b5d0368b5f168259f07af1836ed76dbe9b81bb905466bd9c3b8770d60
Contents?: true
Size: 1.13 KB
Versions: 3
Compression:
Stored size: 1.13 KB
Contents
=begin #Sunshine Conversations API The version of the OpenAPI document: 9.4.5 Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.1 =end require 'date' module SunshineConversationsClient class ClientType LINE = "line".freeze MAILGUN = "mailgun".freeze MESSAGEBIRD = "messagebird".freeze MESSENGER = "messenger".freeze SDK = "sdk".freeze TELEGRAM = "telegram".freeze TWILIO = "twilio".freeze TWITTER = "twitter".freeze VIBER = "viber".freeze WECHAT = "wechat".freeze WHATSAPP = "whatsapp".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 = ClientType.constants.select { |c| ClientType::const_get(c) == value } raise "Invalid ENUM value #{value} for class #ClientType" if constantValues.empty? value end end end
Version data entries
3 entries across 3 versions & 1 rubygems