We are hosting our documentation for our Ruby API here: support.kissmetrics.com/apis/ruby
gem install km
This gem includes SaaS calls. For more information please refer to: support.kissmetrics.com/getting-started/saas_basics
For the methods used, see the rdoc for SaaS