Class: SolidusImporter::Processors::ShipAddress
- Defined in:
- lib/solidus_importer/processors/ship_address.rb
Instance Method Summary collapse
Methods inherited from Base
Instance Method Details
#call(context) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/solidus_importer/processors/ship_address.rb', line 6 def call(context) @data = context[:data] return if @data['Shipping Address1'].blank? order = context.fetch(:order, {}) order[:ship_address_attributes] = ship_address_attributes context.merge!(order: order) end |