Rubyhorn is a ruby library for accessing Matterhorn via its REST API.
Under rails you can setup an initializer (conf/initializers/rubyhorn.rb) based on the default in Hydrant:
Then in your code calls are made using the Rubyhorn client:
Adding New Methods
Each REST method is accessible directly from the client object. Adding support for methods is as simple as creating a new module under lib/rubyhorn/rest_client, adding the methods there, and including the new module in lib/rubyhorn/matterhorn_client.rb. Make sure to add unit tests in spec/lib whenever you do add support for new methods.