class BasicWay
This class provides the template method of providing the output to show products by ranking, click history and general method.
Public Class Methods
new(param)
click to toggle source
this method initializes the hash array with a specific store details.
# File lib/product_home_template.rb, line 5 def initialize(param) @store_detail = StoreDetail.find(param) end
Public Instance Methods
my_special_method(pages)
click to toggle source
this method to run the logic of sorting the products with pagination
# File lib/product_home_template.rb, line 20 def my_special_method(pages) puts("triggered in abstract") end
my_special_method_without(member)
click to toggle source
this method to run the logic of sorting the products with pagination
# File lib/product_home_template.rb, line 25 def my_special_method_without(member) puts("triggered in abstract") end
with_page(pages)
click to toggle source
this method provides the products array with pagination type
# File lib/product_home_template.rb, line 10 def with_page(pages) my_special_method(pages) end
without_page(member)
click to toggle source
this method provides the products array without pagination type
# File lib/product_home_template.rb, line 15 def without_page(member) my_special_method_without(member) end