Class: AmzSpApi::FulfillmentInboundApiModel::PrepInstruction

Inherits:
Object
  • Object
show all
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

Instance Method Details

#build_from_hash(value) ⇒ String

Builds the enum from string

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



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