class AmzSpApi::FulfillmentInboundApiModel::Condition
Constants
- CLUB
- COLLECTIBLE_ACCEPTABLE
- COLLECTIBLE_GOOD
- COLLECTIBLE_LIKE_NEW
- COLLECTIBLE_POOR
- COLLECTIBLE_VERY_GOOD
- NEW_ITEM
- NEW_OEM
- NEW_OPEN_BOX
- NEW_WITH_WARRANTY
- REFURBISHED
- REFURBISHED_WITH_WARRANTY
- USED_ACCEPTABLE
- USED_GOOD
- USED_LIKE_NEW
- USED_POOR
- USED_REFURBISHED
- USED_VERY_GOOD
Public Instance Methods
build_from_hash(value)
click to toggle source
Builds the enum from string @param [String] The enum value in the form of the string @return [String] The enum value
# File lib/fulfillment-inbound-api-model/models/condition.rb, line 38 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