def shorten(input)
			if input.is_a?(String)
			  return create_url(input)	
			elsif input.is_a?(Array)
				result = {}
				input.each do |inp|
					result[inp] = create_url(inp)
				end
        return result 
			else
				raise ArgumentError.new('Shorten requires either a url or an array of urls')
			end
		end
def shorten(input)
			if input.is_a?(String)
			  return create_url(input)	
			elsif input.is_a?(Array)
				result = {}
				input.each do |inp|
					result[inp] = create_url(inp)
				end
        return result 
			else
				raise ArgumentError.new('Shorten requires either a url or an array of urls')
			end
		end
Creates a new instance to shorten Firefly URLs

 +url+ is the URL to your Firefly server. E.g. "http://aj.gs".
 Note: do not include a trailing slash
 +api_key+ is your Firefly API Key.
 Shortens the given URL or array of URLs.

    shorten("http://google.com") => "http://aj.gs/7dZ"

    shorten(["http://google.com", "http://yahoo.com"])
				=> { "http://google.com/" => "http://aj.gs/7dZ",
            "http://yahoo.com/"  => "http://aj.gs/8Yt" }