Sha256: 953b886945a2374793be59147ad4b897f3c20463a3ae94a095af9d0607272309
Contents?: true
Size: 1.08 KB
Versions: 9
Compression:
Stored size: 1.08 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 StatusCodeClass CodeNone = 0.freeze Code1xx = 100.freeze Code2xx = 200.freeze Code3xx = 300.freeze Code4xx = 400.freeze Code5xx = 500.freeze def self.all_vars @all_vars ||= [CodeNone, Code1xx, Code2xx, Code3xx, Code4xx, Code5xx].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 StatusCodeClass.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #StatusCodeClass" end end end
Version data entries
9 entries across 9 versions & 1 rubygems