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-4.3.2 lib/shopify_api/resources/smart_collection.rb
shopify_api-4.3.1 lib/shopify_api/resources/smart_collection.rb
shopify_api-4.3.0 lib/shopify_api/resources/smart_collection.rb
shopify_api-4.2.2 lib/shopify_api/resources/smart_collection.rb
shopify_api-4.2.1 lib/shopify_api/resources/smart_collection.rb
shopify_api-4.2.0 lib/shopify_api/resources/smart_collection.rb
shopify_api-4.1.1 lib/shopify_api/resources/smart_collection.rb
shopify_api-4.1.0 lib/shopify_api/resources/smart_collection.rb
shopify_api-4.0.7 lib/shopify_api/resources/smart_collection.rb
shopify_api-4.0.6 lib/shopify_api/resources/smart_collection.rb
shopify_api-4.0.5 lib/shopify_api/resources/smart_collection.rb
shopify_api-4.0.4 lib/shopify_api/resources/smart_collection.rb
shopify_api-4.0.3 lib/shopify_api/resources/smart_collection.rb
shopify_api-4.0.2 lib/shopify_api/resources/smart_collection.rb
shopify_api-4.0.1 lib/shopify_api/resources/smart_collection.rb
shopify_api-4.0.0 lib/shopify_api/resources/smart_collection.rb
shopify_api-3.2.7 lib/shopify_api/resources/smart_collection.rb
shopify_api-3.2.6 lib/shopify_api/resources/smart_collection.rb
shopify_api-3.2.5 lib/shopify_api/resources/smart_collection.rb
shopify_api-3.2.4 lib/shopify_api/resources/smart_collection.rb