Sha256: 42fae0f255fa3b2b478c3f404389bd5a084320633562ab10860784639c73378c
Contents?: true
Size: 570 Bytes
Versions: 5
Compression:
Stored size: 570 Bytes
Contents
require "flex_commerce_api/api_base" module FlexCommerce # # A flex commerce variant model # # This model is used by the Product model as an association so is not # usable directly on the API as there is no corresponding URL # # class Variant < FlexCommerceApi::ApiBase has_one :product has_many :asset_files has_many :markdown_prices def add_markdown_prices(markdown_prices) self.class.requestor.custom("relationships/markdown_prices", {request_method: :post}, {id: id, data: markdown_prices.map(&:as_relation)}) end end end
Version data entries
5 entries across 5 versions & 1 rubygems