Sha256: 98cbd4c1529820a98d64e8b39284e0989f364ce0a30611239b5dde4cb9ea23df

Contents?: true

Size: 1.02 KB

Versions: 3

Compression:

Stored size: 1.02 KB

Contents

=begin
#Pulp 3 API

#Fetch, Upload, Organize, and Distribute Software Packages

The version of the OpenAPI document: v3
Contact: pulp-list@redhat.com
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 4.2.3

=end

require 'date'

module PulpPythonClient
  class ExcludePlatformsEnum
    WINDOWS = "windows".freeze
    MACOS = "macos".freeze
    FREEBSD = "freebsd".freeze
    LINUX = "linux".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 = ExcludePlatformsEnum.constants.select { |c| ExcludePlatformsEnum::const_get(c) == value }
      raise "Invalid ENUM value #{value} for class #ExcludePlatformsEnum" if constantValues.empty?
      value
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pulp_python_client-3.4.0 lib/pulp_python_client/models/exclude_platforms_enum.rb
pulp_python_client-3.3.0 lib/pulp_python_client/models/exclude_platforms_enum.rb
pulp_python_client-3.2.0 lib/pulp_python_client/models/exclude_platforms_enum.rb