Class: AmznSpApi::MerchantFulfillmentApiModel::StandardIdForLabel

Inherits:
Object
  • Object
show all
Defined in:
lib/merchant_fulfillment_api_model/models/standard_id_for_label.rb

Constant Summary collapse

AMAZON_ORDER_ID =
'AmazonOrderId'.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



19
20
21
22
23
24
# File 'lib/merchant_fulfillment_api_model/models/standard_id_for_label.rb', line 19

def build_from_hash(value)
  constantValues = StandardIdForLabel.constants.select { |c| StandardIdForLabel.const_get(c) == value }
  raise "Invalid ENUM value #{value} for class #StandardIdForLabel" if constantValues.empty?

  value
end