class Veeqo::Product
Public Instance Methods
create(title:, variants:, images: [], **attributes)
click to toggle source
# File lib/veeqo/product.rb, line 5 def create(title:, variants:, images: [], **attributes) required_attributes = { title: title, product_variants_attributes: variants, images_attributes: images, } create_resource(product: required_attributes.merge(attributes)) end
update(product_id, attributes)
click to toggle source
# File lib/veeqo/product.rb, line 15 def update(product_id, attributes) update_resource(product_id, product: attributes) end
Private Instance Methods
end_point()
click to toggle source
# File lib/veeqo/product.rb, line 21 def end_point "products" end