Class: SolidusImporter::Processors::Order

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

Instance Method Summary collapse

Instance Method Details

#call(context) ⇒ Object



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

def call(context)
  @data = context.fetch(:data)
  check_data
  context.merge!(order: order_attributes)
end

#optionsObject



12
13
14
15
16
# File 'lib/solidus_importer/processors/order.rb', line 12

def options
  @options ||= {
    store: Spree::Store.default
  }
end