Why not share your ruby script examples here.
To get started here is a nice example of how to add a Unique ID to a data import of Polygons. For more details refer the blog post.

class Importer
@@polygon_id = 1

def Importer.OnEndRecordPolygon(obj)
obj['polygon_id'] = @@polygon_id

@@polygon_id += 1
end
end