Class: ShopifyAPI::RecurringApplicationCharge
- Defined in:
- lib/shopify_api.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Countable
Class Method Details
.current ⇒ Object
474 475 476 |
# File 'lib/shopify_api.rb', line 474 def self.current find(:all).find{|charge| charge.status == 'active'} end |
Instance Method Details
#activate ⇒ Object
482 483 484 |
# File 'lib/shopify_api.rb', line 482 def activate load_attributes_from_response(post(:activate)) end |
#cancel ⇒ Object
478 479 480 |
# File 'lib/shopify_api.rb', line 478 def cancel load_attributes_from_response(self.destroy) end |