Class: AmznSpApi::FulfillmentInboundApiModel::LabelPrepPreference
- Inherits:
-
Object
- Object
- AmznSpApi::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
21 22 23 24 25 26 |
# File 'lib/fulfillment_inbound_api_model/models/label_prep_preference.rb', line 21 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 |