class DuodealerAPI::SmartCollection

Public Instance Methods

order(options={}) click to toggle source
# File lib/duodealer_api/resources/smart_collection.rb, line 14
def order(options={})
  load_attributes_from_response(put(:order, options, only_id))
end
products(options = {}) click to toggle source
# File lib/duodealer_api/resources/smart_collection.rb, line 6
def products(options = {})
  if options.present?
    Product.find(:all, from: "#{self.class.prefix}smart_collections/#{id}/products.json", params: options)
  else
    Product.find(:all, params: { collection_id: id })
  end
end