Sha256: 2ce019d477ad3a6f48ec2fede0c78b0063495211fbe813482e82a6e96c0f9a66
Contents?: true
Size: 411 Bytes
Versions: 1
Compression:
Stored size: 411 Bytes
Contents
module ExtendWarranties module Api class Offers < Base 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 end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
extend_warranties-0.1.0 | lib/extend_warranties/api/offers.rb |