Class: ShopifyTransporter::Pipeline::Magento::Customer::TopLevelAttributes

Inherits:
Stage
  • Object
show all
Defined in:
lib/shopify_transporter/pipeline/magento/customer/top_level_attributes.rb

Defined Under Namespace

Classes: TopLevelAttributesAccumulator

Instance Attribute Summary

Attributes inherited from Stage

#params

Instance Method Summary collapse

Methods inherited from Stage

#initialize

Constructor Details

This class inherits a constructor from ShopifyTransporter::Pipeline::Stage

Instance Method Details

#convert(hash, record) ⇒ Object



10
11
12
13
14
# File 'lib/shopify_transporter/pipeline/magento/customer/top_level_attributes.rb', line 10

def convert(hash, record)
  accumulator = TopLevelAttributesAccumulator.new(record)
  accumulator.accumulate(hash)
  record.merge!(accumulator.output)
end