added two api methods

I added two api methods I needed to the ruby gem. Please, commit and release the gem, so I can use the unmodified gem. Thanks.