class PulpContainerClient::Policy8e2Enum

Constants

ON_DEMAND

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/policy8e2_enum.rb, line 22
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/policy8e2_enum.rb, line 29
def build_from_hash(value)
  constantValues = Policy8e2Enum.constants.select { |c| Policy8e2Enum::const_get(c) == value }
  raise "Invalid ENUM value #{value} for class #Policy8e2Enum" if constantValues.empty?
  value
end