Template gateway

This line, for example, is assigning the result of  ``` REXML::XPath.first(xml, "//types:TransactionResult") ``` to variable ``` root ``` first, then checking whether the result is truthy (in this case, not nil). The ruby interpreter may throw warnings about expecting ``` == ``` instead of  ``` = ``` , but it's valid ruby code.
See **Variations on If** in [this guide](http://ruby.bastardsbook.com/chapters/ifelse/) for some more tips!