Skip to content

Instantly share code, notes, and snippets.

@luckyruby
Created June 1, 2014 19:54
Show Gist options
  • Save luckyruby/8ca714375202abee930c to your computer and use it in GitHub Desktop.
Save luckyruby/8ca714375202abee930c to your computer and use it in GitHub Desktop.
iata = request["POS"]["Source"]["RequestorID"]["@ID"] rescue nil
rate_key = request["VehResRQCore"]["UniqueID"]["@ID"] rescue nil
customer = request["VehResRQCore"]["Customer"]["Primary"] rescue nil
first_name = customer["PersonName"]["GivenName"] rescue nil
last_name = customer["PersonName"]["Surname"] rescue nil
email = customer["Email"] rescue nil
phone = customer["Telephone"] rescue nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment