Class: Retailer::UrlBackfill::Outcome

Inherits:
Data
  • Object
show all
Defined in:
app/services/retailer/url_backfill.rb

Overview

Per-item outcome, kept so #report can explain the misses rather than just
counting them — a miss is a real listing problem (the retailer does not
carry the item) and needs to be actionable, not a silent zero.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#catalog_item_idObject (readonly)

Returns the value of attribute catalog_item_id

Returns:

  • (Object)

    the current value of catalog_item_id



31
32
33
# File 'app/services/retailer/url_backfill.rb', line 31

def catalog_item_id
  @catalog_item_id
end

#catalog_nameObject (readonly)

Returns the value of attribute catalog_name

Returns:

  • (Object)

    the current value of catalog_name



31
32
33
# File 'app/services/retailer/url_backfill.rb', line 31

def catalog_name
  @catalog_name
end

#skuObject (readonly)

Returns the value of attribute sku

Returns:

  • (Object)

    the current value of sku



31
32
33
# File 'app/services/retailer/url_backfill.rb', line 31

def sku
  @sku
end

#urlObject (readonly)

Returns the value of attribute url

Returns:

  • (Object)

    the current value of url



31
32
33
# File 'app/services/retailer/url_backfill.rb', line 31

def url
  @url
end

Instance Method Details

#found?Boolean

Returns:

  • (Boolean)


32
# File 'app/services/retailer/url_backfill.rb', line 32

def found? = url.present?