Class: Tray::Checkout::AccountResponseParser

Inherits:
ResponseParser show all
Defined in:
lib/tray/checkout/account_response_parser.rb

Instance Method Summary collapse

Methods inherited from ResponseParser

get_parser, #initialize, transaction?

Constructor Details

This class inherits a constructor from Tray::Checkout::ResponseParser

Instance Method Details

#parseObject



4
5
6
7
8
9
10
11
12
13
14
# File 'lib/tray/checkout/account_response_parser.rb', line 4

def parse
  response = super

  if response.success?
    response.people           = people
    response.service_contact  = service_contact
    response.seconds_redirect = seconds_redirect
  end

  response
end