Class: AmzSpApi::MerchantFulfillmentApiModel::StandardIdForLabel
- Inherits:
-
Object
- Object
- AmzSpApi::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
21 22 23 24 25 |
# File 'lib/merchant-fulfillment-api-model/models/standard_id_for_label.rb', line 21 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 |