class ShortURL::Services::ShitURL
Public Class Methods
new()
click to toggle source
Calls superclass method
ShortURL::Service::new
# File lib/shorturl/services/shiturl.rb 7 def initialize 8 super("shiturl.com") 9 10 @method = :get 11 @action = "/make.php" 12 end
Public Instance Methods
on_body(body)
click to toggle source
# File lib/shorturl/services/shiturl.rb 14 def on_body(body) 15 URI.extract(body).grep(/shiturl/)[0] 16 end