Class: ShopifyAPI::RecurringApplicationCharge
- Inherits:
-
Base
- Object
- ActiveResource::Base
- Base
- ShopifyAPI::RecurringApplicationCharge
- Defined in:
- lib/shopify_api/resources/recurring_application_charge.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Countable
Methods inherited from ActiveResource::Base
Class Method Details
.current ⇒ Object
6 7 8 |
# File 'lib/shopify_api/resources/recurring_application_charge.rb', line 6 def current all.find { |c| c.status == 'active' } end |
Instance Method Details
#activate ⇒ Object
19 20 21 |
# File 'lib/shopify_api/resources/recurring_application_charge.rb', line 19 def activate load_attributes_from_response(post(:activate)) end |
#cancel ⇒ Object
15 16 17 |
# File 'lib/shopify_api/resources/recurring_application_charge.rb', line 15 def cancel load_attributes_from_response(self.destroy) end |