Class: SolidusImportProducts::Parser::Base
- Inherits:
-
Object
- Object
- SolidusImportProducts::Parser::Base
- Defined in:
- app/models/solidus_import_products/parser/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#data_file ⇒ Object
Returns the value of attribute data_file.
-
#image_fields ⇒ Object
Returns the value of attribute image_fields.
-
#property_fields ⇒ Object
Returns the value of attribute property_fields.
-
#rows ⇒ Object
Returns the value of attribute rows.
-
#variant_image_fields ⇒ Object
Returns the value of attribute variant_image_fields.
Instance Method Summary collapse
-
#column_mappings ⇒ Object
column_mappings This method attempts to automatically map headings in the CSV files with fields in the product and variant models.
- #data_rows ⇒ Object
- #products_count ⇒ Object
Instance Attribute Details
#data_file ⇒ Object
Returns the value of attribute data_file.
4 5 6 |
# File 'app/models/solidus_import_products/parser/base.rb', line 4 def data_file @data_file end |
#image_fields ⇒ Object
Returns the value of attribute image_fields.
4 5 6 |
# File 'app/models/solidus_import_products/parser/base.rb', line 4 def image_fields @image_fields end |
#property_fields ⇒ Object
Returns the value of attribute property_fields.
4 5 6 |
# File 'app/models/solidus_import_products/parser/base.rb', line 4 def property_fields @property_fields end |
#rows ⇒ Object
Returns the value of attribute rows.
4 5 6 |
# File 'app/models/solidus_import_products/parser/base.rb', line 4 def rows @rows end |
#variant_image_fields ⇒ Object
Returns the value of attribute variant_image_fields.
4 5 6 |
# File 'app/models/solidus_import_products/parser/base.rb', line 4 def variant_image_fields @variant_image_fields end |
Instance Method Details
#column_mappings ⇒ Object
column_mappings This method attempts to automatically map headings in the CSV files with fields in the product and variant models. Rows is an array of headings for columns - SKU, Master Price, etc.)
11 12 13 |
# File 'app/models/solidus_import_products/parser/base.rb', line 11 def column_mappings raise SolidusImportProducts::AbstractMthodCall end |
#data_rows ⇒ Object
15 16 17 |
# File 'app/models/solidus_import_products/parser/base.rb', line 15 def data_rows raise SolidusImportProducts::AbstractMthodCall end |
#products_count ⇒ Object
19 20 21 |
# File 'app/models/solidus_import_products/parser/base.rb', line 19 def products_count raise SolidusImportProducts::AbstractMthodCall end |