Class: AmzSpApi::FulfillmentInboundApiModel::PrepInstruction
- Inherits:
-
Object
- Object
- AmzSpApi::FulfillmentInboundApiModel::PrepInstruction
- Defined in:
- lib/fulfillment-inbound-api-model/models/prep_instruction.rb
Constant Summary collapse
- POLYBAGGING =
'Polybagging'.freeze
- BUBBLE_WRAPPING =
'BubbleWrapping'.freeze
- TAPING =
'Taping'.freeze
- BLACK_SHRINK_WRAPPING =
'BlackShrinkWrapping'.freeze
- LABELING =
'Labeling'.freeze
- HANG_GARMENT =
'HangGarment'.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
26 27 28 29 30 |
# File 'lib/fulfillment-inbound-api-model/models/prep_instruction.rb', line 26 def build_from_hash(value) constantValues = PrepInstruction.constants.select { |c| PrepInstruction::const_get(c) == value } raise "Invalid ENUM value #{value} for class #PrepInstruction" if constantValues.empty? value end |