class ShortURL::Services::Shorl
Public Class Methods
new()
click to toggle source
Calls superclass method
ShortURL::Service::new
# File lib/shorturl/services/shorl.rb 7 def initialize 8 super("shorl.com") 9 10 @action = "/create.php" 11 end
Public Instance Methods
on_body(body)
click to toggle source
# File lib/shorturl/services/shorl.rb 13 def on_body(body) 14 URI.extract(body)[2] 15 end