Class: ShopifyAPI::Discount
- Inherits:
-
Base
show all
- Defined in:
- lib/shopify_api/resources/discount.rb
Instance Method Summary
collapse
Methods inherited from Base
activate_session, #as_json, clear_session, #encode, #headers, init_prefix, init_prefix_explicit, #persisted?
Methods included from Countable
#count
delete, headers
Instance Method Details
3
4
5
|
# File 'lib/shopify_api/resources/discount.rb', line 3
def disable
load_attributes_from_response(post(:disable))
end
|
7
8
9
|
# File 'lib/shopify_api/resources/discount.rb', line 7
def enable
load_attributes_from_response(post(:enable))
end
|