Class: Gemgento::Search

Inherits:
Object
  • Object
show all
Defined in:
app/models/gemgento/search.rb

Overview

Author:

  • Gemgento LLC

Class Method Summary collapse

Class Method Details

.products(term) ⇒ Object



6
7
8
9
10
11
# File 'app/models/gemgento/search.rb', line 6

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

  return products
end