Sha256: 02668640a0310db18436e8f48d0a92c26931123383bffec8a56bb194f0fcb4bf

Contents?: true

Size: 978 Bytes

Versions: 6

Compression:

Stored size: 978 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 SinkStatusIn
    ENABLED = "enabled".freeze
    PAUSED = "paused".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 = SinkStatusIn.constants.select { |c| SinkStatusIn::const_get(c) == value }
      raise "Invalid ENUM value #{value} for class #SinkStatusIn" if constantValues.empty?
      value
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
svix-1.38.0 lib/svix/models/sink_status_in.rb
svix-1.37.0 lib/svix/models/sink_status_in.rb
svix-1.36.0 lib/svix/models/sink_status_in.rb
svix-1.35.0 lib/svix/models/sink_status_in.rb
svix-1.34.0 lib/svix/models/sink_status_in.rb
svix-1.33.0 lib/svix/models/sink_status_in.rb