Class: AmznSpApi::FulfillmentInboundApiModel::ShipmentStatus
- Inherits:
-
Object
- Object
- AmznSpApi::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
28 29 30 31 32 33 |
# File 'lib/fulfillment_inbound_api_model/models/shipment_status.rb', line 28 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 |