class PagSeguro::SubscriptionCanceller
Constants
- API_VERSION
Attributes
subscription_code[RW]
The code of subscription, not the plan
Public Instance Methods
errors()
click to toggle source
Set errors
# File lib/pagseguro/subscription_canceller.rb, line 12 def errors @errors ||= Errors.new end
save()
click to toggle source
# File lib/pagseguro/subscription_canceller.rb, line 16 def save request = Request.get_with_auth_on_url("pre-approvals/cancel/#{subscription_code}", API_VERSION, credentials) Response.new(request, self).serialize self end
Private Instance Methods
after_initialize()
click to toggle source
# File lib/pagseguro/subscription_canceller.rb, line 26 def after_initialize @errors = Errors.new end