Class: Google4R::Checkout::CheckoutRedirectResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/google4r/checkout/commands.rb

Overview

CheckoutRedirectResponse instances are returned when a CheckoutCommand is successfully processed by Google Checkout.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(serial_number, redirect_url) ⇒ CheckoutRedirectResponse

Create a new CheckoutRedirectResponse with the given serial number and redirection URL. Do not create CheckoutRedirectResponse instances in your own code. Google4R creates them for you.



294
295
296
297
# File 'lib/google4r/checkout/commands.rb', line 294

def initialize(serial_number, redirect_url)
  @serial_number = serial_number
  @redirect_url = redirect_url
end

Instance Attribute Details

#redirect_urlObject (readonly)

The URL to redirect to.



289
290
291
# File 'lib/google4r/checkout/commands.rb', line 289

def redirect_url
  @redirect_url
end

#serial_numberObject (readonly)

The serial number of the response.



286
287
288
# File 'lib/google4r/checkout/commands.rb', line 286

def serial_number
  @serial_number
end

Instance Method Details

#to_sObject



299
300
301
# File 'lib/google4r/checkout/commands.rb', line 299

def to_s
  return @redirect_url
end