Class: AmzSpApi::ProductFeesApiModel::OptionalFulfillmentProgram
- Inherits:
-
Object
- Object
- AmzSpApi::ProductFeesApiModel::OptionalFulfillmentProgram
- Defined in:
- lib/product-fees-api-model/models/optional_fulfillment_program.rb
Constant Summary collapse
- CORE =
'FBA_CORE'.freeze
- SNL =
'FBA_SNL'.freeze
- EFN =
'FBA_EFN'.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
23 24 25 26 27 |
# File 'lib/product-fees-api-model/models/optional_fulfillment_program.rb', line 23 def build_from_hash(value) constantValues = OptionalFulfillmentProgram.constants.select { |c| OptionalFulfillmentProgram::const_get(c) == value } raise "Invalid ENUM value #{value} for class #OptionalFulfillmentProgram" if constantValues.empty? value end |