Class: UrlsHelper::SalesProductResult
- Inherits:
-
Data
- Object
- Data
- UrlsHelper::SalesProductResult
- Defined in:
- app/helpers/urls_helper.rb
Overview
Sales product resolvers: find the best URL + name for a product or
product line. Handles successor items, sales portal ancestor fallback,
and main-product resolution. Used in static pages and product grids
for CTA links and Schema.org collection page markup.
Instance Attribute Summary collapse
-
#item_sku ⇒ Object
readonly
Returns the value of attribute item_sku.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url: nil, name: nil, item_sku: nil) ⇒ SalesProductResult
constructor
A new instance of SalesProductResult.
Constructor Details
#initialize(url: nil, name: nil, item_sku: nil) ⇒ SalesProductResult
Returns a new instance of SalesProductResult.
66 |
# File 'app/helpers/urls_helper.rb', line 66 def initialize(url: nil, name: nil, item_sku: nil) = super |
Instance Attribute Details
#item_sku ⇒ Object (readonly)
Returns the value of attribute item_sku
65 66 67 |
# File 'app/helpers/urls_helper.rb', line 65 def item_sku @item_sku end |
#name ⇒ Object (readonly)
Returns the value of attribute name
65 66 67 |
# File 'app/helpers/urls_helper.rb', line 65 def name @name end |
#url ⇒ Object (readonly)
Returns the value of attribute url
65 66 67 |
# File 'app/helpers/urls_helper.rb', line 65 def url @url end |