Convert HTML to Confluence Wiki

I’m converting data from a legacy system into a new RoR system. The
legacy system contains lots of content that is currently stored as
HTML in a database. I want to convert these to Confluence Wiki pages
using Ruby. I have not found a straightforward way to do this. Any
help would be appreciated.