Class: Indix::Prices

Inherits:
Object
  • Object
show all
Extended by:
Resource
Defined in:
lib/indix/prices.rb

Class Method Summary collapse

Methods included from Resource

base_uri, client, get

Class Method Details

.find(product_id, store_id) ⇒ Mash

Get the prices for a product at a store

Parameters:

  • product_id (String)
  • store_id (Fixnum)

Returns:

  • (Mash)

    an object containing a few product details like the store, brand etc and an array of prices and recorded time



10
11
12
13
# File 'lib/indix/prices.rb', line 10

def self.find(product_id, store_id)
  request_params = {:storeId => store_id}
  get("/products/#{product_id}/prices", request_params)
end