Class: SolidusImporter::Processors::VariantImages

Inherits:
Base
  • Object
show all
Defined in:
lib/solidus_importer/processors/variant_images.rb

Instance Method Summary collapse

Methods inherited from Base

#options

Instance Method Details

#call(context) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/solidus_importer/processors/variant_images.rb', line 6

def call(context)
  @data = context.fetch(:data)
  return unless variant_image?

  variant = context.fetch(:variant)
  process_images(variant)
end