Sha256: 45c9877ce51e6e9a4649baff938a42483bffc8516118a83045a6f6f5b59a036b
Contents?: true
Size: 975 Bytes
Versions: 359
Compression:
Stored size: 975 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 MethodEnum WRITE = "write".freeze HARDLINK = "hardlink".freeze SYMLINK = "symlink".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 = MethodEnum.constants.select { |c| MethodEnum::const_get(c) == value } raise "Invalid ENUM value #{value} for class #MethodEnum" if constantValues.empty? value end end end
Version data entries
359 entries across 359 versions & 1 rubygems