Sha256: 2694a1c4bf2b18c24dd7cbc44b5192e8f8c59a9e657b4712be57659aae9646ad

Contents?: true

Size: 295 Bytes

Versions: 50

Compression:

Stored size: 295 Bytes

Contents

module ShopifyAPI
  class SmartCollection < Base
    include Events
    include Metafields

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

    def order(options={})
      load_attributes_from_response(put(:order, options, only_id))
    end

  end
end

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
shopify_api-5.0.0 lib/shopify_api/resources/smart_collection.rb
shopify_api-4.13.0 lib/shopify_api/resources/smart_collection.rb
shopify_api-4.12.0 lib/shopify_api/resources/smart_collection.rb
shopify_api-4.11.0 lib/shopify_api/resources/smart_collection.rb
shopify_api-4.10.0 lib/shopify_api/resources/smart_collection.rb
shopify_api-4.9.1 lib/shopify_api/resources/smart_collection.rb
shopify_api-4.9.0 lib/shopify_api/resources/smart_collection.rb
shopify_api-4.8.0 lib/shopify_api/resources/smart_collection.rb
shopify_api-4.7.1 lib/shopify_api/resources/smart_collection.rb
shopify_api-4.7.0 lib/shopify_api/resources/smart_collection.rb
shopify_api-4.6.0 lib/shopify_api/resources/smart_collection.rb
shopify_api-4.5.0 lib/shopify_api/resources/smart_collection.rb
shopify_api-4.4.0 lib/shopify_api/resources/smart_collection.rb
shopify_api-4.3.9 lib/shopify_api/resources/smart_collection.rb
shopify_api-4.3.8 lib/shopify_api/resources/smart_collection.rb
shopify_api-4.3.7 lib/shopify_api/resources/smart_collection.rb
shopify_api-4.3.6 lib/shopify_api/resources/smart_collection.rb
shopify_api-4.3.5 lib/shopify_api/resources/smart_collection.rb
shopify_api-4.3.4 lib/shopify_api/resources/smart_collection.rb
shopify_api-4.3.3 lib/shopify_api/resources/smart_collection.rb