class ShopifyAPI::Variant
Public Class Methods
new(*)
click to toggle source
Calls superclass method
# File lib/shopify_api/resources/variant.rb, line 9 def initialize(*) super attributes.except!('old_inventory_quantity') end
Public Instance Methods
inventory_quantity=(new_value)
click to toggle source
Calls superclass method
# File lib/shopify_api/resources/variant.rb, line 19 def inventory_quantity=(new_value) raise_deprecated_inventory_call('inventory_quantity') super end
inventory_quantity_adjustment=(new_value)
click to toggle source
Calls superclass method
# File lib/shopify_api/resources/variant.rb, line 14 def inventory_quantity_adjustment=(new_value) raise_deprecated_inventory_call('inventory_quantity_adjustment') super end
old_inventory_quantity=(new_value)
click to toggle source
Calls superclass method
# File lib/shopify_api/resources/variant.rb, line 24 def old_inventory_quantity=(new_value) raise_deprecated_inventory_call('old_inventory_quantity') super end
save()
click to toggle source
Calls superclass method
# File lib/shopify_api/resources/variant.rb, line 29 def save attributes.except!('inventory_quantity') super end
Private Instance Methods
raise_deprecated_inventory_call(parameter)
click to toggle source
# File lib/shopify_api/resources/variant.rb, line 36 def raise_deprecated_inventory_call(parameter) raise( ShopifyAPI::ValidationException, "'#{parameter}' is deprecated - see https://help.shopify.com/en/api/guides/inventory-migration-guide", ) end