Class: AmznSpApi::MerchantFulfillmentApiModel::StandardIdForLabel
- Inherits:
-
Object
- Object
- AmznSpApi::MerchantFulfillmentApiModel::StandardIdForLabel
- 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
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Details
#build_from_hash(value) ⇒ String
Builds the enum from string
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 |