Class: Edi::Wayfair::ListingGenerator::Attributes::Assembly
- Inherits:
-
BaseAttribute
- Object
- BaseAttribute
- Edi::Wayfair::ListingGenerator::Attributes::Assembly
- Defined in:
- app/services/edi/wayfair/listing_generator/attributes/assembly.rb
Overview
Maps the internal X-Wayfair assembly answer to Wayfair's class-specific
Assembly attribute.
Wayfair assigns a different taxonomy attribute id to Assembly in each
product class, so the live schema title is authoritative. The legacy id is
retained only as a fallback for the towel-warmer schema.
Constant Summary
Constants inherited from BaseAttribute
Instance Attribute Summary
Attributes inherited from BaseAttribute
#attribute_definition, #catalog_item, #item, #taxonomy_attribute_id, #wayfair_schema
Instance Method Summary collapse
-
#value ⇒ String?
Returns the inherited or item-specific X-Wayfair assembly answer.
Methods inherited from BaseAttribute
attribute_name, #attribute_title, #build, #build_attribute_hash, #can_build?, #custom_values_allowed?, #datatype, #fetch_value, #format_boolean, #format_decimal, #initialize, #map_unit, #possible_values, #requirement, schema_titles, set_schema_titles, set_taxonomy_attribute_id, #valid_value?
Constructor Details
This class inherits a constructor from Edi::Wayfair::ListingGenerator::Attributes::BaseAttribute
Instance Method Details
#value ⇒ String?
Returns the inherited or item-specific X-Wayfair assembly answer.
23 |
# File 'app/services/edi/wayfair/listing_generator/attributes/assembly.rb', line 23 def value = fetch_value(:assembly) |