Class: OpenapiClient::SmartPostHub
- Inherits:
-
Object
- Object
- OpenapiClient::SmartPostHub
- Defined in:
- lib/openapi_client/models/smart_post_hub.rb
Constant Summary collapse
- NONE =
"none".freeze
- ALLENTOWN_PA =
"allentown_pa".freeze
- ATLANTA_GA =
"atlanta_ga".freeze
- BALTIMORE_MD =
"baltimore_md".freeze
- CHARLOTTE_NC =
"charlotte_nc".freeze
- CHINO_CA =
"chino_ca".freeze
- DALLAS_TX =
"dallas_tx".freeze
- DENVER_CO =
"denver_co".freeze
- DETROIT_MI =
"detroit_mi".freeze
- EDISON_NJ =
"edison_nj".freeze
- GROVE_CITY_OH =
"grove_city_oh".freeze
- GROVEPORT_OH =
"groveport_oh".freeze
- HOUSTON_TX =
"houston_tx".freeze
- INDIANAPOLIS_IN =
"indianapolis_in".freeze
- KANSAS_CITY_KS =
"kansas_city_ks".freeze
- LOS_ANGELES_CA =
"los_angeles_ca".freeze
- MARTINSBURG_WV =
"martinsburg_wv".freeze
- MEMPHIS_TN =
"memphis_tn".freeze
- MINNEAPOLIS_MN =
"minneapolis_mn".freeze
- NEW_BERLIN_WI =
"new_berlin_wi".freeze
- NORTHBOROUGH_MA =
"northborough_ma".freeze
- ORLANDO_FL =
"orlando_fl".freeze
- PHONEIX_AZ =
"phoneix_az".freeze
- PITTSBURGH_PA =
"pittsburgh_pa".freeze
- RENO_NV =
"reno_nv".freeze
- SACRAMENTO_CA =
"sacramento_ca".freeze
- SALT_LAKE_CITY_UT =
"salt_lake_city_ut".freeze
- SEATTLE_WA =
"seattle_wa".freeze
- ST_LOUIS_MO =
"st_louis_mo".freeze
- WINDSOR_CT =
"windsor_ct".freeze
- NEWARK_NY =
"newark_ny".freeze
- SOUTH_BRUNSWICK_NJ =
"south_brunswick_nj".freeze
- SCRANTON_PA =
"scranton_pa".freeze
- WHEELING_IL =
"wheeling_il".freeze
Class Method Summary collapse
-
.build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Summary collapse
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Class Method Details
.build_from_hash(value) ⇒ String
Builds the enum from string
55 56 57 |
# File 'lib/openapi_client/models/smart_post_hub.rb', line 55 def self.build_from_hash(value) new.build_from_hash(value) end |
Instance Method Details
#build_from_hash(value) ⇒ String
Builds the enum from string
62 63 64 65 66 |
# 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 |