Class: Edi::Wayfair::CatalogItemInformationProcessor::ProcessResult

Inherits:
Data
  • Object
show all
Defined in:
app/services/edi/wayfair/catalog_item_information_processor.rb

Overview

Service object: process result.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(processed: nil, skipped: nil, errors: nil, catalog_items_updated: nil) ⇒ ProcessResult

Returns a new instance of ProcessResult.

Parameters:

  • processed (Integer, nil) (defaults to: nil)

    number of products updated

  • skipped (Integer, nil) (defaults to: nil)

    number of products skipped

  • errors (Array<String>, nil) (defaults to: nil)

    per-product error messages

  • catalog_items_updated (Array<CatalogItem>, nil) (defaults to: nil)

    updated records



30
# File 'app/services/edi/wayfair/catalog_item_information_processor.rb', line 30

def initialize(processed: nil, skipped: nil, errors: nil, catalog_items_updated: nil) = super

Instance Attribute Details

#catalog_items_updatedObject (readonly)

Returns the value of attribute catalog_items_updated

Returns:

  • (Object)

    the current value of catalog_items_updated



25
26
27
# File 'app/services/edi/wayfair/catalog_item_information_processor.rb', line 25

def catalog_items_updated
  @catalog_items_updated
end

#errorsObject (readonly)

Returns the value of attribute errors

Returns:

  • (Object)

    the current value of errors



25
26
27
# File 'app/services/edi/wayfair/catalog_item_information_processor.rb', line 25

def errors
  @errors
end

#processedObject (readonly)

Returns the value of attribute processed

Returns:

  • (Object)

    the current value of processed



25
26
27
# File 'app/services/edi/wayfair/catalog_item_information_processor.rb', line 25

def processed
  @processed
end

#skippedObject (readonly)

Returns the value of attribute skipped

Returns:

  • (Object)

    the current value of skipped



25
26
27
# File 'app/services/edi/wayfair/catalog_item_information_processor.rb', line 25

def skipped
  @skipped
end