Sha256: 7a7947e99f8ab6ab375dc9ce9ae44c11a92e26d7d5f24f064c04c327a3813155
Contents?: true
Size: 1003 Bytes
Versions: 6
Compression:
Stored size: 1003 Bytes
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 OpenAPI Generator version: 5.2.0 =end require 'date' require 'time' module Svix class SinkStatus ENABLED = "enabled".freeze PAUSED = "paused".freeze DISABLED = "disabled".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 = SinkStatus.constants.select { |c| SinkStatus::const_get(c) == value } raise "Invalid ENUM value #{value} for class #SinkStatus" if constantValues.empty? value end end end
Version data entries
6 entries across 6 versions & 1 rubygems