Class: AmznSpApi::FulfillmentInboundApiModel::InboundGuidance
- Inherits:
-
Object
- Object
- AmznSpApi::FulfillmentInboundApiModel::InboundGuidance
- Defined in:
- lib/fulfillment_inbound_api_model/models/inbound_guidance.rb
Constant Summary collapse
- INBOUND_NOT_RECOMMENDED =
'InboundNotRecommended'.freeze
- INBOUND_OK =
'InboundOK'.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
20 21 22 23 24 25 |
# File 'lib/fulfillment_inbound_api_model/models/inbound_guidance.rb', line 20 def build_from_hash(value) constantValues = InboundGuidance.constants.select { |c| InboundGuidance.const_get(c) == value } raise "Invalid ENUM value #{value} for class #InboundGuidance" if constantValues.empty? value end |