Class: ShopifyTransporter::Pipeline::Magento::Order::AddressesAttribute
- Inherits:
-
Stage
- Object
- Stage
- ShopifyTransporter::Pipeline::Magento::Order::AddressesAttribute
- Defined in:
- lib/shopify_transporter/pipeline/magento/order/addresses_attribute.rb
Constant Summary collapse
- BILLING_PREFIX =
'billing_'- SHIPPING_PREFIX =
'shipping_'
Instance Attribute Summary
Attributes inherited from Stage
Instance Method Summary collapse
Methods inherited from Stage
Constructor Details
This class inherits a constructor from ShopifyTransporter::Pipeline::Stage
Instance Method Details
#convert(input, record) ⇒ Object
12 13 14 15 16 |
# File 'lib/shopify_transporter/pipeline/magento/order/addresses_attribute.rb', line 12 def convert(input, record) record['billing_address'] = address_attributes(input, BILLING_PREFIX) record['shipping_address'] = address_attributes(input, SHIPPING_PREFIX) record end |