class OpenapiClient::SmartPostHub

Constants

ALLENTOWN_PA
ATLANTA_GA
BALTIMORE_MD
CHARLOTTE_NC
CHINO_CA
DALLAS_TX
DENVER_CO
DETROIT_MI
EDISON_NJ
GROVEPORT_OH
GROVE_CITY_OH
HOUSTON_TX
INDIANAPOLIS_IN
KANSAS_CITY_KS
LOS_ANGELES_CA
MARTINSBURG_WV
MEMPHIS_TN
MINNEAPOLIS_MN
NEWARK_NY
NEW_BERLIN_WI
NONE
NORTHBOROUGH_MA
ORLANDO_FL
PHONEIX_AZ
PITTSBURGH_PA
RENO_NV
SACRAMENTO_CA
SALT_LAKE_CITY_UT
SCRANTON_PA
SEATTLE_WA
SOUTH_BRUNSWICK_NJ
ST_LOUIS_MO
WHEELING_IL
WINDSOR_CT

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/openapi_client/models/smart_post_hub.rb, line 55
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/openapi_client/models/smart_post_hub.rb, line 62
def build_from_hash(value)
  constantValues = SmartPostHub.constants.select { |c| SmartPostHub::const_get(c) == value }
  raise "Invalid ENUM value #{value} for class #SmartPostHub" if constantValues.empty?
  value
end