class ShortURL::Services::Shortify

Public Class Methods

new() click to toggle source
Calls superclass method ShortURL::Service::new
   # File lib/shorturl/services/shortify.rb
 7 def initialize
 8   super("shortify.wikinote.com")
 9 
10   @method = :get
11   @action = "/shorten.php"
12 end

Public Instance Methods

on_body(body) click to toggle source
   # File lib/shorturl/services/shortify.rb
14 def on_body(body)
15   URI.extract(body).grep(/shortify/)[-1]
16 end