Class: AmzSpApi::FulfillmentInboundApiModel::LabelPrepPreference

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

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



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