class AmzSpApi::MerchantFulfillmentApiModel::CarrierWillPickUpOption
Constants
- CARRIER_WILL_PICK_UP
- NO_PREFERENCE
- SHIPPER_WILL_DROP_OFF
Public Instance Methods
build_from_hash(value)
click to toggle source
Builds the enum from string @param [String] The enum value in the form of the string @return [String] The enum value
# File lib/merchant-fulfillment-api-model/models/carrier_will_pick_up_option.rb, line 23 def build_from_hash(value) constantValues = CarrierWillPickUpOption.constants.select { |c| CarrierWillPickUpOption::const_get(c) == value } raise "Invalid ENUM value #{value} for class #CarrierWillPickUpOption" if constantValues.empty? value end