MooMoo [![MooMoo Build Status][Build Icon]][Build Status] ========================================================= MooMoo is a Ruby library for working with the [Tucows OpenSRS XML API][]. MooMoo has been tested on MRI 1.8.7, MRI 1.9.2, MRI 1.9.3 Preview 1, Rubinius 2.0.0pre, and JRuby 1.6.2. Documentation is available in [RDoc][] format. [Build Status]: http://travis-ci.org/site5/moo_moo [Build Icon]: https://secure.travis-ci.org/site5/moo_moo.png?branch=master [Tucows OpenSRS XML API]: http://www.opensrs.com/site/resources/documentation [RDoc]: http://rdoc.info/github/site5/moo_moo/master/frames Description ----------- Implements most of the functionality of the OpenSRS XML API. For full documentation of the OpenSRS XML API see Usage ----- First, create an opensrs object from which all commands are called: opensrs = MooMoo::OpenSRS::Base.new( "horizon.opensrs.net", "", "", "" ) Or configure MooMoo and you can initialize it without any arguments: MooMoo.configure do |config| config.host = "horizon.opensrs.net" config.key = "" config.user = "" config.pass = "" end ... opensrs = MooMoo::OpenSRS::Base.new Now you can call a variety of commands to deal with domains, nameservers, etc. Here's how to check the availability of a domain name: res = opensrs.lookup_domain('example.com') p res.success? p res.result['status'] true taken Each method returns an `OpenSRSResponse` object which you can use to determine if the call was successful and retrieve the response code and/or error message. The result variable is a hash that contains all of the relevant data returned by the call. Note on Patches/Pull Requests ----------------------------- * Fork the project. * Make your feature addition or bug fix. * Add tests for it. This is important so I don't break it in a future version unintentionally. * Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull) * Send me a pull request. Bonus points for topic branches. Copyright --------- Copyright (c) 2011 Site5 LLC. See LICENSE for details.