Sha256: 2c9fffb86350f875af92877db7fd8f169fce34f259ef763ecc456a427ad6af65
Contents?: true
Size: 1.29 KB
Versions: 9
Compression:
Stored size: 1.29 KB
Contents
=begin #Svix API #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) The version of the OpenAPI document: 1.1.1 Generated by: https://openapi-generator.tech Generator version: 7.9.0 =end require 'date' require 'time' module Svix class BackgroundTaskType ENDPOINT_REPLAY = "endpoint.replay".freeze ENDPOINT_RECOVER = "endpoint.recover".freeze APPLICATION_STATS = "application.stats".freeze MESSAGE_BROADCAST = "message.broadcast".freeze SDK_GENERATE = "sdk.generate".freeze EVENT_TYPE_AGGREGATE = "event-type.aggregate".freeze def self.all_vars @all_vars ||= [ENDPOINT_REPLAY, ENDPOINT_RECOVER, APPLICATION_STATS, MESSAGE_BROADCAST, SDK_GENERATE, EVENT_TYPE_AGGREGATE].freeze end # 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) return value if BackgroundTaskType.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #BackgroundTaskType" end end end
Version data entries
9 entries across 9 versions & 1 rubygems