0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
A small wrapper for the Long URL Please (http://www.longurlplease.com/) API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

>= 0.10.0

Runtime

>= 0
 Project Readme

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.