Method: Paid::Subscription#cancel

Defined in:
lib/paid/subscription.rb

#cancel(params = {}, headers = {}) ⇒ Object



38
39
40
41
# File 'lib/paid/subscription.rb', line 38

def cancel(params={}, headers={})
  method = APIMethod.new(:post, "/subscriptions/:id/cancel", params, headers, self)
  self.refresh_from(method.execute, method)
end