long_url

A small wrapper for the Long URL Please (www.longurlplease.com/) API.

See www.longurlplease.com/docs for the API docs.

Usage

require 'long_url'

LongUrl.longen("http://bit.ly/enAo") # => { "http://bit.ly/enAo" => "http://www.boasas.com/?c=1030"}

You can also include LongUrl inside a class of yours:

require 'long_url'

class MyNiftyClass
  include LongUrl

  def my_nifty_method
    longen("http://bit.ly/enAo")
  end
end

Copyright © 2009 Markus Prinz. See LICENSE for details.