Sha256: 2b57c9377c3a14c5580c6b6c8fdb911fcef40d67dbce3201b9512e2b828f85be
Contents?: true
Size: 899 Bytes
Versions: 1
Compression:
Stored size: 899 Bytes
Contents
=begin #Sunshine Conversations API The version of the OpenAPI document: 9.4.6 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sunshine-conversations-client-9.5.7 | lib/sunshine-conversations-client/models/status.rb |