Class: Workarea::Storefront::ProductViewModel::CacheKey
- Inherits:
-
Object
- Object
- Workarea::Storefront::ProductViewModel::CacheKey
- Defined in:
- app/view_models/workarea/storefront/product_view_model/cache_key.rb
Instance Method Summary collapse
-
#initialize(product, options = {}) ⇒ CacheKey
constructor
A new instance of CacheKey.
- #to_s ⇒ Object
Constructor Details
#initialize(product, options = {}) ⇒ CacheKey
Returns a new instance of CacheKey.
5 6 7 8 |
# File 'app/view_models/workarea/storefront/product_view_model/cache_key.rb', line 5 def initialize(product, = {}) @product = product @options = end |
Instance Method Details
#to_s ⇒ Object
10 11 12 |
# File 'app/view_models/workarea/storefront/product_view_model/cache_key.rb', line 10 def to_s (product_parts + option_parts).join('/') end |