class Fastly::AwsRegion

Constants

AF_SOUTH_1
AP_EAST_1
AP_NORTHEAST_1
AP_NORTHEAST_2
AP_NORTHEAST_3
AP_SOUTHEAST_1
AP_SOUTHEAST_2
AP_SOUTH_1
CA_CENTRAL_1
CN_NORTHWEST_1
CN_NORTH_1
EU_CENTRAL_1
EU_NORTH_1
EU_SOUTH_1
EU_WEST_1
EU_WEST_2
EU_WEST_3
ME_SOUTH_1
SA_EAST_1
US_EAST_1
US_EAST_2
US_WEST_1
US_WEST_2

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/fastly/models/aws_region.rb, line 43
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/fastly/models/aws_region.rb, line 50
def build_from_hash(value)
  constantValues = AwsRegion.constants.select { |c| AwsRegion::const_get(c) == value }
  raise "Invalid ENUM value #{value} for class #AwsRegion" if constantValues.empty?
  value
end