Class: AmznSpApi::OrdersApiModel::ItemApprovalStatus
- Inherits:
-
Object
- Object
- AmznSpApi::OrdersApiModel::ItemApprovalStatus
- Defined in:
- lib/orders_api_model/models/item_approval_status.rb
Constant Summary collapse
- PENDING_SELLING_PARTNER_APPROVAL =
'PENDING_SELLING_PARTNER_APPROVAL'.freeze
- PROCESSING_SELLING_PARTNER_APPROVAL =
'PROCESSING_SELLING_PARTNER_APPROVAL'.freeze
- PENDING_AMAZON_APPROVAL =
'PENDING_AMAZON_APPROVAL'.freeze
- APPROVED =
'APPROVED'.freeze
- APPROVED_WITH_CHANGES =
'APPROVED_WITH_CHANGES'.freeze
- DECLINED =
'DECLINED'.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
24 25 26 27 28 29 |
# File 'lib/orders_api_model/models/item_approval_status.rb', line 24 def build_from_hash(value) constantValues = ItemApprovalStatus.constants.select { |c| ItemApprovalStatus.const_get(c) == value } raise "Invalid ENUM value #{value} for class #ItemApprovalStatus" if constantValues.empty? value end |