class PagSeguro::SubscriptionChangePayment::Response
Attributes
object[R]
response[R]
Public Class Methods
new(response, object)
click to toggle source
# File lib/pagseguro/subscription_change_payment/response.rb, line 8 def initialize(response, object) @response = response @object = object end
Public Instance Methods
serialize()
click to toggle source
# File lib/pagseguro/subscription_change_payment/response.rb, line 13 def serialize unless success? object.errors.add response end object end
success?()
click to toggle source
# File lib/pagseguro/subscription_change_payment/response.rb, line 21 def success? response.success? && response.xml? end