Sha256: e4dbc9bf3fb4d6695feb14b56e75ab8d0753b80ad5e104a8f2a6cb53a188e3a0
Contents?: true
Size: 1020 Bytes
Versions: 9
Compression:
Stored size: 1020 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 Generator version: 7.9.0 =end require 'date' require 'time' module Svix class MessageStatus Success = 0.freeze Pending = 1.freeze Fail = 2.freeze Sending = 3.freeze def self.all_vars @all_vars ||= [Success, Pending, Fail, Sending].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 MessageStatus.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #MessageStatus" end end end
Version data entries
9 entries across 9 versions & 1 rubygems