class PulpContainerClient::MediaTypesEnum
Constants
- DOCKER_DISTRIBUTION_MANIFEST_LIST_V2JSON
- DOCKER_DISTRIBUTION_MANIFEST_V1JSON
- DOCKER_DISTRIBUTION_MANIFEST_V2JSON
- OCI_IMAGE_INDEX_V1JSON
- OCI_IMAGE_MANIFEST_V1JSON
Public Class Methods
build_from_hash(value)
click to toggle source
Builds the enum from string @param [String] The enum value in the form of the string @return [String] The enum value
# File lib/pulp_container_client/models/media_types_enum.rb, line 26 def self.build_from_hash(value) new.build_from_hash(value) end
Public Instance Methods
build_from_hash(value)
click to toggle source
Builds the enum from string @param [String] The enum value in the form of the string @return [String] The enum value
# File lib/pulp_container_client/models/media_types_enum.rb, line 33 def build_from_hash(value) constantValues = MediaTypesEnum.constants.select { |c| MediaTypesEnum::const_get(c) == value } raise "Invalid ENUM value #{value} for class #MediaTypesEnum" if constantValues.empty? value end