Class: Indix::Offers

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

Class Method Summary collapse

Methods included from Resource

base_uri, client, get

Class Method Details

.find(product_id, store_id) ⇒ Mash

Get the offers for a product at a store



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

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