Moneydance API documentation
Moneydance API docs are primary source of developers information. Ruby interface allows you to use Moneydance API classes and methods in your Ruby scripts.
Moneydance Dev pages also contain useful resources and links for developers.
If you need help with Moneydance API, Moneydance Developers forum is a good place to start.
Moneydance Ruby documentation
You should be familiar with Ruby to be able to write scripts.
Moneydance Ruby is JRuby and its interactive console is derived from Jirb_swing. JRuby wiki contains a wealth of information about accessing Java APIs from Ruby scripts.
Moneydance Ruby Primer highlights some of the useful methods and approaches to programmatically accessing Moneydance. Please read it to understand how you can interact with Moneydance data structures and interfaces from Ruby.
Possibilities are limitless, this is Ruby - play with data models interactively, read the reference docs and hack away.