class IbmCloudPower::CloudConnectionSpeed

Constants

N100
N1000
N10000
N200
N2000
N50
N500
N5000

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