Class: SolidusImporter::Processors::OptionValues

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#options

Instance Attribute Details

#option_typesObject

Returns the value of attribute option_types.



6
7
8
# File 'lib/solidus_importer/processors/option_values.rb', line 6

def option_types
  @option_types
end

#variantObject

Returns the value of attribute variant.



6
7
8
# File 'lib/solidus_importer/processors/option_values.rb', line 6

def variant
  @variant
end

Instance Method Details

#call(context) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/solidus_importer/processors/option_values.rb', line 8

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

  self.variant = context.fetch(:variant)
  process_option_values
end