class AmzSpApi::FulfillmentInboundApiModel::LabelPrepPreference
Constants
- AMAZON_LABEL_ONLY
- AMAZON_LABEL_PREFERRED
- SELLER_LABEL
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/fulfillment-inbound-api-model/models/label_prep_preference.rb, line 23 def build_from_hash(value) constantValues = LabelPrepPreference.constants.select { |c| LabelPrepPreference::const_get(c) == value } raise "Invalid ENUM value #{value} for class #LabelPrepPreference" if constantValues.empty? value end