Dan and thomthom, thank you so much! This is incredibly useful information on Ruby and where to start in the documentation. I'll have a go and report back if I get stuck!
thomthom: Yup, literally every face also nested within components and groups. Output is a simple text file.