The Spreedly gem provides a convenient Ruby wrapper Spreedly's Subscriptions API.