class ExtendWarranties::Api::Offers

Public Instance Methods

find_by_id(store_id, product_id, args = {}) click to toggle source
# File lib/extend_warranties/api/offers.rb, line 5
def find_by_id(store_id, product_id, args = {})
  raise ArgumentError, 'store_id is required' if store_id.blank?
  raise ArgumentError, 'product_id is required' if product_id.blank?

  resp = connection.get "/offers?storeId=#{store_id}&productId=#{product_id}", args
  handle_response(resp)
end