Sha256: e93cace62268ce5ea8d6c426533196baf5c8963c9683154ffd1596416a540252

Contents?: true

Size: 1.01 KB

Versions: 6

Compression:

Stored size: 1.01 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 PulpAnsibleClient
  class CertificationEnum
    CERTIFIED = "certified".freeze
    NOT_CERTIFIED = "not_certified".freeze
    NEEDS_REVIEW = "needs_review".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 = CertificationEnum.constants.select { |c| CertificationEnum::const_get(c) == value }
      raise "Invalid ENUM value #{value} for class #CertificationEnum" if constantValues.empty?
      value
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
pulp_ansible_client-0.4.3 lib/pulp_ansible_client/models/certification_enum.rb
pulp_ansible_client-0.4.2 lib/pulp_ansible_client/models/certification_enum.rb
pulp_ansible_client-0.4.1 lib/pulp_ansible_client/models/certification_enum.rb
pulp_ansible_client-0.4.0 lib/pulp_ansible_client/models/certification_enum.rb
pulp_ansible_client-0.3.0 lib/pulp_ansible_client/models/certification_enum.rb
pulp_ansible_client-0.2.0 lib/pulp_ansible_client/models/certification_enum.rb