module Seoshop::Product

Public Instance Methods

get_product(product_id) click to toggle source
# File lib/seoshop-api/api/product.rb, line 13
def get_product(product_id)
  response = get("#{@shop_language}/products/#{product_id}.json")
  response.body ? response.body['product'] : false
end
get_products(params = {}) click to toggle source
# File lib/seoshop-api/api/product.rb, line 3
def get_products(params = {})
  response = get("#{@shop_language}/products.json", params)
  response.body ? response.body['products'] : false
end
get_products_count() click to toggle source
# File lib/seoshop-api/api/product.rb, line 8
def get_products_count
  response = get("#{@shop_language}/products/count.json")
  response.body ? response.body['count'] : false
end