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