Class: AmznSpApi::ProductFeesApiModel::OptionalFulfillmentProgram
- Inherits:
-
Object
- Object
- AmznSpApi::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
21 22 23 24 25 26 |
# File 'lib/product_fees_api_model/models/optional_fulfillment_program.rb', line 21 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 |