Class: AmzSpApi::FulfillmentOutboundApiModel::CurrentStatus
- Inherits:
-
Object
- Object
- AmzSpApi::FulfillmentOutboundApiModel::CurrentStatus
- Defined in:
- lib/fulfillment-outbound-api-model/models/current_status.rb
Constant Summary collapse
- IN_TRANSIT =
'IN_TRANSIT'.freeze
- DELIVERED =
'DELIVERED'.freeze
- RETURNING =
'RETURNING'.freeze
- RETURNED =
'RETURNED'.freeze
- UNDELIVERABLE =
'UNDELIVERABLE'.freeze
- DELAYED =
'DELAYED'.freeze
- AVAILABLE_FOR_PICKUP =
'AVAILABLE_FOR_PICKUP'.freeze
- CUSTOMER_ACTION =
'CUSTOMER_ACTION'.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
28 29 30 31 32 |
# File 'lib/fulfillment-outbound-api-model/models/current_status.rb', line 28 def build_from_hash(value) constantValues = CurrentStatus.constants.select { |c| CurrentStatus::const_get(c) == value } raise "Invalid ENUM value #{value} for class #CurrentStatus" if constantValues.empty? value end |