Sha256: acb71a36e8ab6e0182b29981dcb0a06915c74e84b56bd24c0eed0962934e74a6
Contents?: true
Size: 963 Bytes
Versions: 6
Compression:
Stored size: 963 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 SinkPayloadFormat JSON = "json".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 = SinkPayloadFormat.constants.select { |c| SinkPayloadFormat::const_get(c) == value } raise "Invalid ENUM value #{value} for class #SinkPayloadFormat" if constantValues.empty? value end end end
Version data entries
6 entries across 6 versions & 1 rubygems