Class: AmzSpApi::FbaSmallAndLightApiModel::SmallAndLightEligibilityStatus
- Inherits:
-
Object
- Object
- AmzSpApi::FbaSmallAndLightApiModel::SmallAndLightEligibilityStatus
- Defined in:
- lib/fba-small-and-light-api-model/models/small_and_light_eligibility_status.rb
Constant Summary collapse
- ELIGIBLE =
'ELIGIBLE'.freeze
- NOT_ELIGIBLE =
'NOT_ELIGIBLE'.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
22 23 24 25 26 |
# File 'lib/fba-small-and-light-api-model/models/small_and_light_eligibility_status.rb', line 22 def build_from_hash(value) constantValues = SmallAndLightEligibilityStatus.constants.select { |c| SmallAndLightEligibilityStatus::const_get(c) == value } raise "Invalid ENUM value #{value} for class #SmallAndLightEligibilityStatus" if constantValues.empty? value end |