Class: ShopifyAPI::SmartCollection

Inherits:
Base show all
Includes:
Events, Metafields
Defined in:
lib/shopify_api/resources/smart_collection.rb

Instance Method Summary (collapse)

Methods included from Metafields

#add_metafield, #metafields

Methods included from Events

#events

Methods included from Countable

#count

Methods inherited from ActiveResource::Base

#encode

Instance Method Details

- (Object) products



6
7
8
# File 'lib/shopify_api/resources/smart_collection.rb', line 6

def products
  Product.find(:all, :params => {:collection_id => self.id})
end