Module: RMigreme

Defined in:
lib/r_migreme.rb

Constant Summary collapse

URL_API =
"http://migre.me/"

Class Method Summary collapse

Class Method Details

.redirect(url) ⇒ Object



13
14
15
# File 'lib/r_migreme.rb', line 13

def self.redirect(url)
  request("api_redirect.json?url=#{url}")["url"]
end

.short(url) ⇒ Object



9
10
11
# File 'lib/r_migreme.rb', line 9

def self.short(url)
  request("api.json?url=#{url}")["migre"]
end