Sha256: c25e239268780760fee8e8333c465af49f00dbf4652da08c88c8128a92e2bdfa

Contents?: true

Size: 244 Bytes

Versions: 1

Compression:

Stored size: 244 Bytes

Contents

module Gemgento

  # @author Gemgento LLC
  class Search

    def self.products(term)
      magento_ids = API::SOAP::Catalog::Search.results(term)
      products = Product.where(magento_id: magento_ids)

      return products
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gemgento-2.8.0 app/models/gemgento/search.rb