Class: AmznSpApi::FulfillmentInboundApiModel::Condition
- Inherits:
-
Object
- Object
- AmznSpApi::FulfillmentInboundApiModel::Condition
- Defined in:
- lib/fulfillment_inbound_api_model/models/condition.rb
Constant Summary collapse
- NEW_ITEM =
'NewItem'.freeze
- NEW_WITH_WARRANTY =
'NewWithWarranty'.freeze
- NEW_OEM =
'NewOEM'.freeze
- NEW_OPEN_BOX =
'NewOpenBox'.freeze
- USED_LIKE_NEW =
'UsedLikeNew'.freeze
- USED_VERY_GOOD =
'UsedVeryGood'.freeze
- USED_GOOD =
'UsedGood'.freeze
- USED_ACCEPTABLE =
'UsedAcceptable'.freeze
- USED_POOR =
'UsedPoor'.freeze
- USED_REFURBISHED =
'UsedRefurbished'.freeze
- COLLECTIBLE_LIKE_NEW =
'CollectibleLikeNew'.freeze
- COLLECTIBLE_VERY_GOOD =
'CollectibleVeryGood'.freeze
- COLLECTIBLE_GOOD =
'CollectibleGood'.freeze
- COLLECTIBLE_ACCEPTABLE =
'CollectibleAcceptable'.freeze
- COLLECTIBLE_POOR =
'CollectiblePoor'.freeze
- REFURBISHED_WITH_WARRANTY =
'RefurbishedWithWarranty'.freeze
- REFURBISHED =
'Refurbished'.freeze
- CLUB =
'Club'.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
36 37 38 39 40 41 |
# File 'lib/fulfillment_inbound_api_model/models/condition.rb', line 36 def build_from_hash(value) constantValues = Condition.constants.select { |c| Condition.const_get(c) == value } raise "Invalid ENUM value #{value} for class #Condition" if constantValues.empty? value end |