Class: SolidusImporter::Processors::BillAddress

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

Instance Method Summary collapse

Methods inherited from Base

#options

Instance Method Details

#call(context) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/solidus_importer/processors/bill_address.rb', line 6

def call(context)
  @data = context[:data]

  return if @data['Billing Address1'].blank?

  order = context.fetch(:order, {})

  order[:bill_address_attributes] = bill_address_attributes

  context.merge!(order: order)
end