Sha256: 684127f1f8092f591c83a5ea6cbc8d4ef41be2bc39eb349140fef0ffab19c65b
Contents?: true
Size: 1.02 KB
Versions: 9
Compression:
Stored size: 1.02 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 BorderRadiusEnum NONE = "none".freeze LG = "lg".freeze MD = "md".freeze SM = "sm".freeze FULL = "full".freeze def self.all_vars @all_vars ||= [NONE, LG, MD, SM, FULL].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 BorderRadiusEnum.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #BorderRadiusEnum" end end end
Version data entries
9 entries across 9 versions & 1 rubygems