Class: Amazon::ImageExporter::Result

Inherits:
Data
  • Object
show all
Defined in:
app/services/amazon/image_exporter.rb

Overview

Processes images for a series of items and exports them to the given directory
Provide target country ISO code to export images for that specific country marketplace, default is US which will be good for global
items if you already have a scope of items you want to export
item_skus if you want to load up items by skus
item_asins if you want to load up items by asins
In any cases, items will be filtered to only active items that have an Amazon ASIN
directory_path where you want to export the file. Otherwise default is the heatwave storage directory

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(result: nil, zip_file_path: nil, directory_path: nil, asins: nil, item_skus: nil) ⇒ Result

Returns a new instance of Result.



14
# File 'app/services/amazon/image_exporter.rb', line 14

def initialize(result: nil, zip_file_path: nil, directory_path: nil, asins: nil, item_skus: nil) = super

Instance Attribute Details

#asinsObject (readonly)

Returns the value of attribute asins

Returns:

  • (Object)

    the current value of asins



13
14
15
# File 'app/services/amazon/image_exporter.rb', line 13

def asins
  @asins
end

#directory_pathObject (readonly)

Returns the value of attribute directory_path

Returns:

  • (Object)

    the current value of directory_path



13
14
15
# File 'app/services/amazon/image_exporter.rb', line 13

def directory_path
  @directory_path
end

#item_skusObject (readonly)

Returns the value of attribute item_skus

Returns:

  • (Object)

    the current value of item_skus



13
14
15
# File 'app/services/amazon/image_exporter.rb', line 13

def item_skus
  @item_skus
end

#resultObject (readonly)

Returns the value of attribute result

Returns:

  • (Object)

    the current value of result



13
14
15
# File 'app/services/amazon/image_exporter.rb', line 13

def result
  @result
end

#zip_file_pathObject (readonly)

Returns the value of attribute zip_file_path

Returns:

  • (Object)

    the current value of zip_file_path



13
14
15
# File 'app/services/amazon/image_exporter.rb', line 13

def zip_file_path
  @zip_file_path
end