module Fulfillment::Resources::Products
Public Instance Methods
create_or_update(params={})
click to toggle source
# File lib/fulfillment/resources/products.rb, line 11 def create_or_update(params={}) response = Request.new("products", params).post end
find(params={})
click to toggle source
# File lib/fulfillment/resources/products.rb, line 6 def find(params={}) response = Request.new("products", { search: params }).get Models::Collection.new(Models::Product, response.body) end
update_all(show_id:, params:)
click to toggle source
# File lib/fulfillment/resources/products.rb, line 15 def update_all(show_id:, params:) response = Request.new("products/#{show_id}", params).patch end