Extracted from a Xero App; basic gem scaffolding