Extending the Ruby api