Quite awhile ago I posted an example of creating (or moving) the camera in a circle about the model to output images.
In the topic it explains how to create a rotational transformation.
[Code] Example: Saving Iso views to PNG image files - Developers / Ruby API - SketchUp Community