Class: AmznSpApi::FbaSmallAndLightApiModel::SmallAndLightEligibilityStatus
- Inherits:
-
Object
- Object
- AmznSpApi::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
20 21 22 23 24 25 |
# File 'lib/fba_small_and_light_api_model/models/small_and_light_eligibility_status.rb', line 20 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 |