Class: AmznSpApi::FulfillmentOutboundApiModel::EventCode
- Inherits:
-
Object
- Object
- AmznSpApi::FulfillmentOutboundApiModel::EventCode
- Defined in:
- lib/fulfillment_outbound_api_model/models/event_code.rb
Constant Summary collapse
- N101 =
'EVENT_101'.freeze
- N102 =
'EVENT_102'.freeze
- N201 =
'EVENT_201'.freeze
- N202 =
'EVENT_202'.freeze
- N203 =
'EVENT_203'.freeze
- N204 =
'EVENT_204'.freeze
- N205 =
'EVENT_205'.freeze
- N206 =
'EVENT_206'.freeze
- N301 =
'EVENT_301'.freeze
- N302 =
'EVENT_302'.freeze
- N304 =
'EVENT_304'.freeze
- N306 =
'EVENT_306'.freeze
- N307 =
'EVENT_307'.freeze
- N308 =
'EVENT_308'.freeze
- N309 =
'EVENT_309'.freeze
- N401 =
'EVENT_401'.freeze
- N402 =
'EVENT_402'.freeze
- N403 =
'EVENT_403'.freeze
- N404 =
'EVENT_404'.freeze
- N405 =
'EVENT_405'.freeze
- N406 =
'EVENT_406'.freeze
- N407 =
'EVENT_407'.freeze
- N408 =
'EVENT_408'.freeze
- N409 =
'EVENT_409'.freeze
- N411 =
'EVENT_411'.freeze
- N412 =
'EVENT_412'.freeze
- N413 =
'EVENT_413'.freeze
- N414 =
'EVENT_414'.freeze
- N415 =
'EVENT_415'.freeze
- N416 =
'EVENT_416'.freeze
- N417 =
'EVENT_417'.freeze
- N418 =
'EVENT_418'.freeze
- N419 =
'EVENT_419'.freeze
Instance Method Summary collapse
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Details
#build_from_hash(value) ⇒ String
Builds the enum from string
51 52 53 54 55 56 |
# File 'lib/fulfillment_outbound_api_model/models/event_code.rb', line 51 def build_from_hash(value) constantValues = EventCode.constants.select { |c| EventCode.const_get(c) == value } raise "Invalid ENUM value #{value} for class #EventCode" if constantValues.empty? value end |