Sha256: 4ad9ad37ea6ba04b16afb105a6569b2b2090eed9bd594349ac80673c76ba92f8
Contents?: true
Size: 974 Bytes
Versions: 27
Compression:
Stored size: 974 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 Ordering ASCENDING = "ascending".freeze DESCENDING = "descending".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 = Ordering.constants.select { |c| Ordering::const_get(c) == value } raise "Invalid ENUM value #{value} for class #Ordering" if constantValues.empty? value end end end
Version data entries
27 entries across 27 versions & 1 rubygems