Class: Edi::Wayfair::RecordCatalogParentCoverage::Result

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

Overview

Service result: updated counts catalog items whose parent-code set was
written; errors lists scan/coverage failures or per-item persist errors.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(updated: 0, errors: []) ⇒ Result

Returns a new instance of Result.

Parameters:

  • updated (Integer) (defaults to: 0)

    number of catalog items updated

  • errors (Array<String>) (defaults to: [])

    failure messages



21
# File 'app/services/edi/wayfair/record_catalog_parent_coverage.rb', line 21

def initialize(updated: 0, errors: []) = super

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors

Returns:

  • (Object)

    the current value of errors



18
19
20
# File 'app/services/edi/wayfair/record_catalog_parent_coverage.rb', line 18

def errors
  @errors
end

#updatedObject (readonly)

Returns the value of attribute updated

Returns:

  • (Object)

    the current value of updated



18
19
20
# File 'app/services/edi/wayfair/record_catalog_parent_coverage.rb', line 18

def updated
  @updated
end