Class: AmznSpApi::FulfillmentInboundApiModel::TransportStatus
- Inherits:
-
Object
- Object
- AmznSpApi::FulfillmentInboundApiModel::TransportStatus
- Defined in:
- lib/fulfillment_inbound_api_model/models/transport_status.rb
Constant Summary collapse
- WORKING =
'WORKING'.freeze
- ESTIMATING =
'ESTIMATING'.freeze
- ESTIMATED =
'ESTIMATED'.freeze
- ERROR_ON_ESTIMATING =
'ERROR_ON_ESTIMATING'.freeze
- CONFIRMING =
'CONFIRMING'.freeze
- CONFIRMED =
'CONFIRMED'.freeze
- ERROR_ON_CONFIRMING =
'ERROR_ON_CONFIRMING'.freeze
- VOIDING =
'VOIDING'.freeze
- VOIDED =
'VOIDED'.freeze
- ERROR_IN_VOIDING =
'ERROR_IN_VOIDING'.freeze
- ERROR =
'ERROR'.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
29 30 31 32 33 34 |
# File 'lib/fulfillment_inbound_api_model/models/transport_status.rb', line 29 def build_from_hash(value) constantValues = TransportStatus.constants.select { |c| TransportStatus.const_get(c) == value } raise "Invalid ENUM value #{value} for class #TransportStatus" if constantValues.empty? value end |