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
481 482 483 |
# File 'lib/shopify_api.rb', line 481 def self.current find(:all).find{|charge| charge.status == 'active'} end |
Instance Method Details
#activate ⇒ Object
489 490 491 |
# File 'lib/shopify_api.rb', line 489 def activate load_attributes_from_response(post(:activate)) end |
#cancel ⇒ Object
485 486 487 |
# File 'lib/shopify_api.rb', line 485 def cancel load_attributes_from_response(self.destroy) end |