Sha256: 40398c95961029d57135061728a47b41627a19ee2c3674125094087483da24b1

Contents?: true

Size: 900 Bytes

Versions: 3

Compression:

Stored size: 900 Bytes

Contents

=begin
#Sunshine Conversations API

The version of the OpenAPI document: 9.12.0

Generated by: https://openapi-generator.tech
OpenAPI Generator version: 4.3.1
=end

require 'date'

module SunshineConversationsClient
  class Status
    INACTIVE = "inactive".freeze
    ACTIVE = "active".freeze
    ERROR = "error".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 = Status.constants.select { |c| Status::const_get(c) == value }
      raise "Invalid ENUM value #{value} for class #Status" if constantValues.empty?
      value
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sunshine-conversations-client-9.14.0 lib/sunshine-conversations-client/models/status.rb
sunshine-conversations-client-9.13.0 lib/sunshine-conversations-client/models/status.rb
sunshine-conversations-client-9.12.0 lib/sunshine-conversations-client/models/status.rb