Class: AmzSpApi::FulfillmentInboundApiModel::ShipmentStatus
- Inherits:
-
Object
- Object
- AmzSpApi::FulfillmentInboundApiModel::ShipmentStatus
- Defined in:
- lib/fulfillment-inbound-api-model/models/shipment_status.rb
Constant Summary collapse
- WORKING =
'WORKING'.freeze
- SHIPPED =
'SHIPPED'.freeze
- RECEIVING =
'RECEIVING'.freeze
- CANCELLED =
'CANCELLED'.freeze
- DELETED =
'DELETED'.freeze
- CLOSED =
'CLOSED'.freeze
- ERROR =
'ERROR'.freeze
- IN_TRANSIT =
'IN_TRANSIT'.freeze
- DELIVERED =
'DELIVERED'.freeze
- CHECKED_IN =
'CHECKED_IN'.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
30 31 32 33 34 |
# File 'lib/fulfillment-inbound-api-model/models/shipment_status.rb', line 30 def build_from_hash(value) constantValues = ShipmentStatus.constants.select { |c| ShipmentStatus::const_get(c) == value } raise "Invalid ENUM value #{value} for class #ShipmentStatus" if constantValues.empty? value end |