Class: Edi::Amazon::JsonListingGenerator::Attributes::ProductCategory
- Inherits:
-
BaseLocalizedAttribute
- Object
- BaseAttribute
- BaseLocalizedAttribute
- Edi::Amazon::JsonListingGenerator::Attributes::ProductCategory
- Defined in:
- app/services/edi/amazon/json_listing_generator/attributes/product_category.rb
Constant Summary collapse
- PRODUCT_CATEGORY_HASH =
{ '6080000': 'Electrical & Heating', '20105800': 'Home Environment', '8620000': 'Outdoor Living', '8647000': 'Snow Removal' }
Constants inherited from BaseAttribute
BaseAttribute::RUBY_UNIT_TO_AMAZON_UNIT
Instance Attribute Summary
Attributes inherited from BaseAttribute
#amazon_schema, #attribute_name, #catalog_item, #enum_mapper, #fba, #item, #language_tag, #marketplace, #marketplace_country_iso, #marketplace_id, #value_attribute_name, #variation
Instance Method Summary collapse
-
#value ⇒ Object
NOTE solve issue of product_data using text rather than enumerated category.
Methods inherited from BaseLocalizedAttribute
Methods inherited from BaseAttribute
#build, #fetch_unit, #fetch_value, #initialize, #map_unit
Constructor Details
This class inherits a constructor from Edi::Amazon::JsonListingGenerator::Attributes::BaseAttribute
Instance Method Details
#value ⇒ Object
NOTE solve issue of product_data using text rather than enumerated category
10 11 12 |
# File 'app/services/edi/amazon/json_listing_generator/attributes/product_category.rb', line 10 def value value(:amazon_product_category, spec_only: true) end |