lib/gscraper/sponsored_ad.rb in gscraper-0.3.0 vs lib/gscraper/sponsored_ad.rb in gscraper-0.4.0
- old
+ new
@@ -1,9 +1,9 @@
#
# GScraper - A web-scraping interface to various Google Services.
#
-# Copyright (c) 2007-2009 Hal Brodigan (postmodern.mod3 at gmail.com)
+# Copyright (c) 2007-2012 Hal Brodigan (postmodern.mod3 at gmail.com)
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
@@ -16,11 +16,11 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
-require 'gscraper/extensions/uri'
+require 'uri/query_params'
module GScraper
class SponsoredAd
# Title of the ad
@@ -38,10 +38,10 @@
# @param [URI::HTTP] url
# The URL of the ad.
#
def initialize(title,url)
@title = title
- @url = url
+ @url = url
end
#
# The direct link of the ad.
#