Class: GoogleCheckout::CheckoutRedirect

Inherits:
Notification show all
Defined in:
lib/google-checkout/notification.rb

Instance Attribute Summary

Attributes inherited from Notification

#doc

Instance Method Summary collapse

Methods inherited from Notification

#acknowledgment_xml, #error?, #initialize, #method_missing, parse, #serial_number, #state

Constructor Details

This class inherits a constructor from GoogleCheckout::Notification

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class GoogleCheckout::Notification

Instance Method Details

#redirect_urlObject

Returns redirect-url with ampersands escaped, as specified by Google API docs.



207
208
209
# File 'lib/google-checkout/notification.rb', line 207

def redirect_url
  (@doc/"redirect-url").inner_html.gsub(/&/, '&')
end