Class: Dawanda::ShopCategory

Inherits:
Object
  • Object
show all
Includes:
Model
Defined in:
lib/dawanda/shop_category.rb

Overview

ShopCategory

Represents a single Dawanda::ShopCategory - has the following attributes:

id

The unique identifier for this shop category

name

This shop category’s name

product_count

The amount of products in this shop category

restful_path

The path to the shop category

Instance Method Summary collapse

Methods included from Model

included

Instance Method Details

#products(params = {}) ⇒ Object

All products in this shop category. See Dawanda::Product for more information



23
24
25
# File 'lib/dawanda/shop_category.rb', line 23

def products(params = {})
  Product.find_all_by_shop_category_id(id, params)
end