Sha256: fc25ff64c3c7a6c5e29479618b2df8a18b486b9212c4ba894a1acb54cb3e8ec2
Contents?: true
Size: 1012 Bytes
Versions: 331
Compression:
Stored size: 1012 Bytes
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.3.1 =end require 'date' module PulpcoreClient class StatesEnum SKIPPED = "skipped".freeze COMPLETED = "completed".freeze FAILED = "failed".freeze CANCELED = "canceled".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 = StatesEnum.constants.select { |c| StatesEnum::const_get(c) == value } raise "Invalid ENUM value #{value} for class #StatesEnum" if constantValues.empty? value end end end
Version data entries
331 entries across 331 versions & 1 rubygems