class ShortURL::Services::Lns
Public Class Methods
new()
click to toggle source
Calls superclass method
ShortURL::Service::new
# File lib/shorturl/services/lns.rb 5 def initialize 6 super("ln-s.net") 7 8 @method = :get 9 @action = "/home/api.jsp" 10 end
Public Instance Methods
on_body(body)
click to toggle source
# File lib/shorturl/services/lns.rb 12 def on_body(body) 13 URI.extract(body)[0] 14 end