Sha256: 3f05f4975040d630343144b1366b9ffa76deb5c81377af42b6c913b7ac8560d7

Contents?: true

Size: 289 Bytes

Versions: 10

Compression:

Stored size: 289 Bytes

Contents

module ShopifyAPI
  class Variant < Base
    include Metafields
    include DisablePrefixCheck

    self.prefix = "/admin/products/:product_id/"
    
    def self.prefix(options={})
      options[:product_id].nil? ? "/admin/" : "/admin/products/#{options[:product_id]}/"
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
shopify_api-3.1.6 lib/shopify_api/resources/variant.rb
shopify_api-3.1.5 lib/shopify_api/resources/variant.rb
shopify_api-3.1.3 lib/shopify_api/resources/variant.rb
shopify_api-3.1.2 lib/shopify_api/resources/variant.rb
shopify_api-3.0.3 lib/shopify_api/resources/variant.rb
shopify_api-3.0.2 lib/shopify_api/resources/variant.rb
shopify_api-3.0.1 lib/shopify_api/resources/variant.rb
shopify_api-3.0.0 lib/shopify_api/resources/variant.rb
shopify_api-2.3.0 lib/shopify_api/resources/variant.rb
shopify_api-2.2.0 lib/shopify_api/resources/variant.rb