Class: SolidusImporter::Processors::OptionValues
- Defined in:
- lib/solidus_importer/processors/option_values.rb
Instance Attribute Summary collapse
-
#option_types ⇒ Object
Returns the value of attribute option_types.
-
#variant ⇒ Object
Returns the value of attribute variant.
Instance Method Summary collapse
Methods inherited from Base
Instance Attribute Details
#option_types ⇒ Object
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 |
#variant ⇒ Object
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 |