Class: AmznSpApi::EasyShipApiModel::PackageStatus
- Inherits:
-
Object
- Object
- AmznSpApi::EasyShipApiModel::PackageStatus
- Defined in:
- lib/easy_ship_api_model/models/package_status.rb
Constant Summary collapse
- READY_FOR_PICKUP =
'ReadyForPickup'.freeze
- PICKED_UP =
'PickedUp'.freeze
- AT_ORIGIN_FC =
'AtOriginFC'.freeze
- AT_DESTINATION_FC =
'AtDestinationFC'.freeze
- DELIVERED =
'Delivered'.freeze
- REJECTED =
'Rejected'.freeze
- UNDELIVERABLE =
'Undeliverable'.freeze
- RETURNED_TO_SELLER =
'ReturnedToSeller'.freeze
- LOST_IN_TRANSIT =
'LostInTransit'.freeze
- LABEL_CANCELED =
'LabelCanceled'.freeze
- DAMAGED_IN_TRANSIT =
'DamagedInTransit'.freeze
- OUT_FOR_DELIVERY =
'OutForDelivery'.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 35 |
# File 'lib/easy_ship_api_model/models/package_status.rb', line 30 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 |