Class: AmzSpApi::FulfillmentInboundApiModel::LabelPrepPreference
- Inherits:
-
Object
- Object
- AmzSpApi::FulfillmentInboundApiModel::LabelPrepPreference
- Defined in:
- lib/fulfillment-inbound-api-model/models/label_prep_preference.rb
Constant Summary collapse
- SELLER_LABEL =
'SELLER_LABEL'.freeze
- AMAZON_LABEL_ONLY =
'AMAZON_LABEL_ONLY'.freeze
- AMAZON_LABEL_PREFERRED =
'AMAZON_LABEL_PREFERRED'.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
23 24 25 26 27 |
# 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 |