Class: AmznSpApi::AplusContentApiModel::AsinBadge
- Inherits:
-
Object
- Object
- AmznSpApi::AplusContentApiModel::AsinBadge
- Defined in:
- lib/aplus_content_api_model/models/asin_badge.rb
Constant Summary collapse
- BRAND_NOT_ELIGIBLE =
'BRAND_NOT_ELIGIBLE'.freeze
- CATALOG_NOT_FOUND =
'CATALOG_NOT_FOUND'.freeze
- CONTENT_NOT_PUBLISHED =
'CONTENT_NOT_PUBLISHED'.freeze
- CONTENT_PUBLISHED =
'CONTENT_PUBLISHED'.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 27 |
# File 'lib/aplus_content_api_model/models/asin_badge.rb', line 22 def build_from_hash(value) constantValues = AsinBadge.constants.select { |c| AsinBadge.const_get(c) == value } raise "Invalid ENUM value #{value} for class #AsinBadge" if constantValues.empty? value end |