Sha256: 7898949c3849b97d218014a464a75e5f141968221a9c328ab83d5a015584ad38
Contents?: true
Size: 989 Bytes
Versions: 6
Compression:
Stored size: 989 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.2.3 =end require 'date' module PulpPythonClient class PolicyEnum IMMEDIATE = "immediate".freeze ON_DEMAND = "on_demand".freeze STREAMED = "streamed".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 = PolicyEnum.constants.select { |c| PolicyEnum::const_get(c) == value } raise "Invalid ENUM value #{value} for class #PolicyEnum" if constantValues.empty? value end end end
Version data entries
6 entries across 6 versions & 1 rubygems