Sha256: e4d102bfbd622deb093ab8ef1fa8f8c6af7859cf9a41f11c0b1a75e779e9a508
Contents?: true
Size: 495 Bytes
Versions: 5
Compression:
Stored size: 495 Bytes
Contents
module InsalesApi class Variant < Base class << self # Updates all given variants. +variants+ should be array: # # [ # { # id: 1, # price: 340, # quantity: 4, # }, # { # id: 2, # price: 350, # quantity: 5, # }, # ] def group_update(variants) put(:group_update, {}, format.encode(variants, root: :variants)) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems