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.
64 |
# File 'app/helpers/urls_helper.rb', line 64 def initialize(url: nil, name: nil, item_sku: nil) = super |
Instance Attribute Details
#item_sku ⇒ Object (readonly)
Returns the value of attribute item_sku
63 64 65 |
# File 'app/helpers/urls_helper.rb', line 63 def item_sku @item_sku end |
#name ⇒ Object (readonly)
Returns the value of attribute name
63 64 65 |
# File 'app/helpers/urls_helper.rb', line 63 def name @name end |
#url ⇒ Object (readonly)
Returns the value of attribute url
63 64 65 |
# File 'app/helpers/urls_helper.rb', line 63 def url @url end |