Created
March 30, 2019 05:05
-
-
Save ericraio/186436aa96861371942c6b4f8f2c87ef to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# frozen_string_literal: true | |
class Product::ImportService < ImportService | |
attr_accessor :product_import | |
def initialize(object = {}) | |
if object.class == ProductImport | |
@product_import = object | |
else | |
@product_import = ProductImport.new(object) | |
end | |
end | |
def importer | |
@product_import | |
end | |
def record_class | |
Product | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment