discount.rb 207 B

1234567891011
  1. module ShopifyAPI
  2. class Discount < Base
  3. def disable
  4. load_attributes_from_response(post(:disable))
  5. end
  6. def enable
  7. load_attributes_from_response(post(:enable))
  8. end
  9. end
  10. end