class Ionoscloud::Type

Constants

BACKUPUNIT
COLLECTION
CONTRACT
DATACENTER
FIREWALL_RULE
GROUP
IMAGE
IPBLOCK
K8S
LABEL
LAN
LOADBALANCER
LOCATION
NIC
NODE
NODEPOOL
PCC
REQUEST
REQUEST_STATUS
RESOURCE
S3KEY
SERVER
SNAPSHOT
USER
VOLUME

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/ionoscloud/models/type.rb, line 47
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/ionoscloud/models/type.rb, line 54
def build_from_hash(value)
  constantValues = Type.constants.select { |c| Type::const_get(c) == value }
  raise "Invalid ENUM value #{value} for class #Type" if constantValues.empty?
  value
end