Class: Dugway::Drops::RelatedProductsDrop

Inherits:
BaseDrop
  • Object
show all
Defined in:
lib/dugway/liquid/drops/related_products_drop.rb

Instance Attribute Summary

Attributes inherited from BaseDrop

#params, #request, #source

Instance Method Summary collapse

Methods inherited from BaseDrop

#before_method, #cart, #context=, #error, #errors, #method_missing, #store, #theme

Constructor Details

#initialize(product) ⇒ RelatedProductsDrop

Returns a new instance of RelatedProductsDrop.



4
5
6
7
# File 'lib/dugway/liquid/drops/related_products_drop.rb', line 4

def initialize(product)
  super()
  @product = product
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Dugway::Drops::BaseDrop

Instance Method Details

#productsObject



9
10
11
# File 'lib/dugway/liquid/drops/related_products_drop.rb', line 9

def products
  fetch_related_products
end