Sha256: 2ec53a183ac9e63b7d6c8ccce18db064c2579f0d12b351bad724b3d2ecfc0a1c
Contents?: true
Size: 554 Bytes
Versions: 2
Compression:
Stored size: 554 Bytes
Contents
module Fulfillment module Resources module Orders extend self def find(params={}) response = Request.new("orders/search", { search: params }).post Models::Collection.new(Models::Order, response.body) end def update(params={}) id = params.delete(:id) response = Request.new("orders/#{id}", params).patch Models::Order.new(response.body) end def destroy(id) response = Request.new("orders/#{id}").delete response.status == 200 end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fulfillment-api-1.1.9 | lib/fulfillment/resources/orders.rb |
fulfillment-api-1.1.7 | lib/fulfillment/resources/orders.rb |