Translating DoneDone's API into Ruby